@twin.org/notarization-service 0.0.3-next.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/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/es/index.js +8 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/INotarizationServiceConfig.js +4 -0
- package/dist/es/models/INotarizationServiceConfig.js.map +1 -0
- package/dist/es/models/INotarizationServiceConstructorOptions.js +2 -0
- package/dist/es/models/INotarizationServiceConstructorOptions.js.map +1 -0
- package/dist/es/notarizationRoutes.js +318 -0
- package/dist/es/notarizationRoutes.js.map +1 -0
- package/dist/es/notarizationService.js +151 -0
- package/dist/es/notarizationService.js.map +1 -0
- package/dist/es/restEntryPoints.js +10 -0
- package/dist/es/restEntryPoints.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/models/INotarizationServiceConfig.d.ts +9 -0
- package/dist/types/models/INotarizationServiceConstructorOptions.d.ts +10 -0
- package/dist/types/notarizationRoutes.d.ts +53 -0
- package/dist/types/notarizationService.d.ts +57 -0
- package/dist/types/restEntryPoints.d.ts +2 -0
- package/docs/changelog.md +19 -0
- package/docs/examples.md +185 -0
- package/docs/open-api/spec.json +712 -0
- package/docs/reference/classes/NotarizationService.md +219 -0
- package/docs/reference/functions/generateRestRoutesNotarization.md +25 -0
- package/docs/reference/functions/notarizationCreate.md +31 -0
- package/docs/reference/functions/notarizationGet.md +31 -0
- package/docs/reference/functions/notarizationRemove.md +31 -0
- package/docs/reference/functions/notarizationTransfer.md +31 -0
- package/docs/reference/functions/notarizationUpdate.md +31 -0
- package/docs/reference/index.md +24 -0
- package/docs/reference/interfaces/INotarizationServiceConfig.md +11 -0
- package/docs/reference/interfaces/INotarizationServiceConstructorOptions.md +11 -0
- package/docs/reference/variables/restEntryPoints.md +3 -0
- package/docs/reference/variables/tagsNotarization.md +5 -0
- package/locales/en.json +13 -0
- package/package.json +58 -0
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "TWIN - Test Endpoints",
|
|
5
|
+
"description": "REST API for TWIN - Test Endpoints.",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"license": {
|
|
8
|
+
"name": "Apache 2.0 License",
|
|
9
|
+
"url": "https://opensource.org/licenses/Apache-2.0"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"servers": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://localhost"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"tags": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Notarization",
|
|
20
|
+
"description": "Endpoints which are modelled to access a notarization service."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"paths": {
|
|
24
|
+
"/notarization": {
|
|
25
|
+
"post": {
|
|
26
|
+
"operationId": "notarizationCreate",
|
|
27
|
+
"summary": "Create a notarization",
|
|
28
|
+
"tags": [
|
|
29
|
+
"Notarization"
|
|
30
|
+
],
|
|
31
|
+
"security": [
|
|
32
|
+
{
|
|
33
|
+
"jwtBearerAuthScheme": []
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"requestBody": {
|
|
37
|
+
"description": "Request to create a notarization.",
|
|
38
|
+
"required": true,
|
|
39
|
+
"content": {
|
|
40
|
+
"application/json": {
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/components/schemas/NotarizationCreateRequest"
|
|
43
|
+
},
|
|
44
|
+
"examples": {
|
|
45
|
+
"notarizationCreateExample": {
|
|
46
|
+
"value": {
|
|
47
|
+
"mode": "dynamic",
|
|
48
|
+
"data": {},
|
|
49
|
+
"description": "My first notarization"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"responses": {
|
|
57
|
+
"201": {
|
|
58
|
+
"description": "The rest request ended in created response.",
|
|
59
|
+
"headers": {
|
|
60
|
+
"location": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"description": "e.g. 123"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"400": {
|
|
69
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
70
|
+
"content": {
|
|
71
|
+
"application/json": {
|
|
72
|
+
"schema": {
|
|
73
|
+
"$ref": "#/components/schemas/Error"
|
|
74
|
+
},
|
|
75
|
+
"examples": {
|
|
76
|
+
"exampleResponse": {
|
|
77
|
+
"value": {
|
|
78
|
+
"name": "GeneralError",
|
|
79
|
+
"message": "errorMessage",
|
|
80
|
+
"properties": {
|
|
81
|
+
"foo": "bar"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"401": {
|
|
90
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
91
|
+
"content": {
|
|
92
|
+
"application/json": {
|
|
93
|
+
"schema": {
|
|
94
|
+
"$ref": "#/components/schemas/Error"
|
|
95
|
+
},
|
|
96
|
+
"examples": {
|
|
97
|
+
"exampleResponse": {
|
|
98
|
+
"value": {
|
|
99
|
+
"name": "UnauthorizedError",
|
|
100
|
+
"message": "errorMessage"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"500": {
|
|
108
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
109
|
+
"content": {
|
|
110
|
+
"application/json": {
|
|
111
|
+
"schema": {
|
|
112
|
+
"$ref": "#/components/schemas/Error"
|
|
113
|
+
},
|
|
114
|
+
"examples": {
|
|
115
|
+
"exampleResponse": {
|
|
116
|
+
"value": {
|
|
117
|
+
"name": "InternalServerError",
|
|
118
|
+
"message": "errorMessage"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"/notarization/{id}": {
|
|
129
|
+
"get": {
|
|
130
|
+
"operationId": "notarizationGet",
|
|
131
|
+
"summary": "Get a notarization",
|
|
132
|
+
"tags": [
|
|
133
|
+
"Notarization"
|
|
134
|
+
],
|
|
135
|
+
"parameters": [
|
|
136
|
+
{
|
|
137
|
+
"name": "id",
|
|
138
|
+
"description": "The id of the notarization to get.",
|
|
139
|
+
"in": "path",
|
|
140
|
+
"required": true,
|
|
141
|
+
"schema": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"style": "simple",
|
|
145
|
+
"example": "123"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"security": [
|
|
149
|
+
{
|
|
150
|
+
"jwtBearerAuthScheme": []
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"responses": {
|
|
154
|
+
"200": {
|
|
155
|
+
"description": "Response for getting a notarization.",
|
|
156
|
+
"content": {
|
|
157
|
+
"application/json": {
|
|
158
|
+
"schema": {
|
|
159
|
+
"$ref": "#/components/schemas/Notarization"
|
|
160
|
+
},
|
|
161
|
+
"examples": {
|
|
162
|
+
"notarizationGetResponseExample": {
|
|
163
|
+
"value": {
|
|
164
|
+
"id": "123",
|
|
165
|
+
"mode": "dynamic",
|
|
166
|
+
"dateCreated": "2026-01-01T00:00:00.000Z",
|
|
167
|
+
"data": {},
|
|
168
|
+
"description": "A notarization"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"400": {
|
|
176
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
177
|
+
"content": {
|
|
178
|
+
"application/json": {
|
|
179
|
+
"schema": {
|
|
180
|
+
"$ref": "#/components/schemas/Error"
|
|
181
|
+
},
|
|
182
|
+
"examples": {
|
|
183
|
+
"exampleResponse": {
|
|
184
|
+
"value": {
|
|
185
|
+
"name": "GeneralError",
|
|
186
|
+
"message": "errorMessage",
|
|
187
|
+
"properties": {
|
|
188
|
+
"foo": "bar"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"401": {
|
|
197
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
198
|
+
"content": {
|
|
199
|
+
"application/json": {
|
|
200
|
+
"schema": {
|
|
201
|
+
"$ref": "#/components/schemas/Error"
|
|
202
|
+
},
|
|
203
|
+
"examples": {
|
|
204
|
+
"exampleResponse": {
|
|
205
|
+
"value": {
|
|
206
|
+
"name": "UnauthorizedError",
|
|
207
|
+
"message": "errorMessage"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"500": {
|
|
215
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
216
|
+
"content": {
|
|
217
|
+
"application/json": {
|
|
218
|
+
"schema": {
|
|
219
|
+
"$ref": "#/components/schemas/Error"
|
|
220
|
+
},
|
|
221
|
+
"examples": {
|
|
222
|
+
"exampleResponse": {
|
|
223
|
+
"value": {
|
|
224
|
+
"name": "InternalServerError",
|
|
225
|
+
"message": "errorMessage"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"delete": {
|
|
235
|
+
"operationId": "notarizationRemove",
|
|
236
|
+
"summary": "Remove a notarization",
|
|
237
|
+
"tags": [
|
|
238
|
+
"Notarization"
|
|
239
|
+
],
|
|
240
|
+
"parameters": [
|
|
241
|
+
{
|
|
242
|
+
"name": "id",
|
|
243
|
+
"description": "The id of the notarization to remove.",
|
|
244
|
+
"in": "path",
|
|
245
|
+
"required": true,
|
|
246
|
+
"schema": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"style": "simple",
|
|
250
|
+
"example": "123"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"security": [
|
|
254
|
+
{
|
|
255
|
+
"jwtBearerAuthScheme": []
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"responses": {
|
|
259
|
+
"204": {
|
|
260
|
+
"description": "The rest request ended in success with no data."
|
|
261
|
+
},
|
|
262
|
+
"400": {
|
|
263
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
264
|
+
"content": {
|
|
265
|
+
"application/json": {
|
|
266
|
+
"schema": {
|
|
267
|
+
"$ref": "#/components/schemas/Error"
|
|
268
|
+
},
|
|
269
|
+
"examples": {
|
|
270
|
+
"exampleResponse": {
|
|
271
|
+
"value": {
|
|
272
|
+
"name": "GeneralError",
|
|
273
|
+
"message": "errorMessage",
|
|
274
|
+
"properties": {
|
|
275
|
+
"foo": "bar"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"401": {
|
|
284
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
285
|
+
"content": {
|
|
286
|
+
"application/json": {
|
|
287
|
+
"schema": {
|
|
288
|
+
"$ref": "#/components/schemas/Error"
|
|
289
|
+
},
|
|
290
|
+
"examples": {
|
|
291
|
+
"exampleResponse": {
|
|
292
|
+
"value": {
|
|
293
|
+
"name": "UnauthorizedError",
|
|
294
|
+
"message": "errorMessage"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"500": {
|
|
302
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
303
|
+
"content": {
|
|
304
|
+
"application/json": {
|
|
305
|
+
"schema": {
|
|
306
|
+
"$ref": "#/components/schemas/Error"
|
|
307
|
+
},
|
|
308
|
+
"examples": {
|
|
309
|
+
"exampleResponse": {
|
|
310
|
+
"value": {
|
|
311
|
+
"name": "InternalServerError",
|
|
312
|
+
"message": "errorMessage"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"put": {
|
|
322
|
+
"operationId": "notarizationUpdate",
|
|
323
|
+
"summary": "Update a notarization",
|
|
324
|
+
"tags": [
|
|
325
|
+
"Notarization"
|
|
326
|
+
],
|
|
327
|
+
"parameters": [
|
|
328
|
+
{
|
|
329
|
+
"name": "id",
|
|
330
|
+
"description": "The id of the notarization to update.",
|
|
331
|
+
"in": "path",
|
|
332
|
+
"required": true,
|
|
333
|
+
"schema": {
|
|
334
|
+
"type": "string"
|
|
335
|
+
},
|
|
336
|
+
"style": "simple",
|
|
337
|
+
"example": "123"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"security": [
|
|
341
|
+
{
|
|
342
|
+
"jwtBearerAuthScheme": []
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"requestBody": {
|
|
346
|
+
"description": "Request to update a notarization.",
|
|
347
|
+
"required": true,
|
|
348
|
+
"content": {
|
|
349
|
+
"application/json": {
|
|
350
|
+
"schema": {
|
|
351
|
+
"$ref": "#/components/schemas/Notarization"
|
|
352
|
+
},
|
|
353
|
+
"examples": {
|
|
354
|
+
"notarizationUpdateExample": {
|
|
355
|
+
"value": {
|
|
356
|
+
"id": "123",
|
|
357
|
+
"mode": "dynamic",
|
|
358
|
+
"dateCreated": "2026-01-01T00:00:00.000Z",
|
|
359
|
+
"data": {},
|
|
360
|
+
"description": "Updated notarization"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"responses": {
|
|
368
|
+
"204": {
|
|
369
|
+
"description": "The rest request ended in success with no data."
|
|
370
|
+
},
|
|
371
|
+
"400": {
|
|
372
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
373
|
+
"content": {
|
|
374
|
+
"application/json": {
|
|
375
|
+
"schema": {
|
|
376
|
+
"$ref": "#/components/schemas/Error"
|
|
377
|
+
},
|
|
378
|
+
"examples": {
|
|
379
|
+
"exampleResponse": {
|
|
380
|
+
"value": {
|
|
381
|
+
"name": "GeneralError",
|
|
382
|
+
"message": "errorMessage",
|
|
383
|
+
"properties": {
|
|
384
|
+
"foo": "bar"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"401": {
|
|
393
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
394
|
+
"content": {
|
|
395
|
+
"application/json": {
|
|
396
|
+
"schema": {
|
|
397
|
+
"$ref": "#/components/schemas/Error"
|
|
398
|
+
},
|
|
399
|
+
"examples": {
|
|
400
|
+
"exampleResponse": {
|
|
401
|
+
"value": {
|
|
402
|
+
"name": "UnauthorizedError",
|
|
403
|
+
"message": "errorMessage"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"500": {
|
|
411
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
412
|
+
"content": {
|
|
413
|
+
"application/json": {
|
|
414
|
+
"schema": {
|
|
415
|
+
"$ref": "#/components/schemas/Error"
|
|
416
|
+
},
|
|
417
|
+
"examples": {
|
|
418
|
+
"exampleResponse": {
|
|
419
|
+
"value": {
|
|
420
|
+
"name": "InternalServerError",
|
|
421
|
+
"message": "errorMessage"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"/notarization/{id}/transfer": {
|
|
432
|
+
"post": {
|
|
433
|
+
"operationId": "notarizationTransfer",
|
|
434
|
+
"summary": "Transfer a notarization",
|
|
435
|
+
"tags": [
|
|
436
|
+
"Notarization"
|
|
437
|
+
],
|
|
438
|
+
"parameters": [
|
|
439
|
+
{
|
|
440
|
+
"name": "id",
|
|
441
|
+
"description": "The id of the notarization to transfer.",
|
|
442
|
+
"in": "path",
|
|
443
|
+
"required": true,
|
|
444
|
+
"schema": {
|
|
445
|
+
"type": "string"
|
|
446
|
+
},
|
|
447
|
+
"style": "simple",
|
|
448
|
+
"example": "123"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"security": [
|
|
452
|
+
{
|
|
453
|
+
"jwtBearerAuthScheme": []
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"requestBody": {
|
|
457
|
+
"description": "Request to transfer a notarization.",
|
|
458
|
+
"required": true,
|
|
459
|
+
"content": {
|
|
460
|
+
"application/json": {
|
|
461
|
+
"schema": {
|
|
462
|
+
"$ref": "#/components/schemas/NotarizationTransferRequest"
|
|
463
|
+
},
|
|
464
|
+
"examples": {
|
|
465
|
+
"notarizationTransferExample": {
|
|
466
|
+
"value": {
|
|
467
|
+
"recipientAddress": "recipient-address-1"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"responses": {
|
|
475
|
+
"204": {
|
|
476
|
+
"description": "The rest request ended in success with no data."
|
|
477
|
+
},
|
|
478
|
+
"400": {
|
|
479
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
480
|
+
"content": {
|
|
481
|
+
"application/json": {
|
|
482
|
+
"schema": {
|
|
483
|
+
"$ref": "#/components/schemas/Error"
|
|
484
|
+
},
|
|
485
|
+
"examples": {
|
|
486
|
+
"exampleResponse": {
|
|
487
|
+
"value": {
|
|
488
|
+
"name": "GeneralError",
|
|
489
|
+
"message": "errorMessage",
|
|
490
|
+
"properties": {
|
|
491
|
+
"foo": "bar"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"401": {
|
|
500
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
501
|
+
"content": {
|
|
502
|
+
"application/json": {
|
|
503
|
+
"schema": {
|
|
504
|
+
"$ref": "#/components/schemas/Error"
|
|
505
|
+
},
|
|
506
|
+
"examples": {
|
|
507
|
+
"exampleResponse": {
|
|
508
|
+
"value": {
|
|
509
|
+
"name": "UnauthorizedError",
|
|
510
|
+
"message": "errorMessage"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"500": {
|
|
518
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
519
|
+
"content": {
|
|
520
|
+
"application/json": {
|
|
521
|
+
"schema": {
|
|
522
|
+
"$ref": "#/components/schemas/Error"
|
|
523
|
+
},
|
|
524
|
+
"examples": {
|
|
525
|
+
"exampleResponse": {
|
|
526
|
+
"value": {
|
|
527
|
+
"name": "InternalServerError",
|
|
528
|
+
"message": "errorMessage"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"components": {
|
|
540
|
+
"schemas": {
|
|
541
|
+
"Error": {
|
|
542
|
+
"description": "Model to describe serialized error.",
|
|
543
|
+
"type": "object",
|
|
544
|
+
"properties": {
|
|
545
|
+
"name": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "The name for the error."
|
|
548
|
+
},
|
|
549
|
+
"message": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"description": "The message for the error."
|
|
552
|
+
},
|
|
553
|
+
"source": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"description": "The source of the error."
|
|
556
|
+
},
|
|
557
|
+
"properties": {
|
|
558
|
+
"type": "object",
|
|
559
|
+
"additionalProperties": {},
|
|
560
|
+
"description": "Any additional information for the error."
|
|
561
|
+
},
|
|
562
|
+
"stack": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"description": "The stack trace for the error."
|
|
565
|
+
},
|
|
566
|
+
"cause": {
|
|
567
|
+
"$ref": "#/components/schemas/Error"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"required": [
|
|
571
|
+
"name",
|
|
572
|
+
"message"
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
"Notarization": {
|
|
576
|
+
"description": "Interface describing a notarization.",
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"id": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"description": "The unique identifier of the notarization."
|
|
582
|
+
},
|
|
583
|
+
"mode": {
|
|
584
|
+
"$ref": "#/components/schemas/NotarizationMode"
|
|
585
|
+
},
|
|
586
|
+
"dateCreated": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"description": "The date and time when the notarization was created, in ISO 8601 format."
|
|
589
|
+
},
|
|
590
|
+
"dateModified": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"description": "The date and time when the notarization was last modified, in ISO 8601 format."
|
|
593
|
+
},
|
|
594
|
+
"data": {
|
|
595
|
+
"type": "array",
|
|
596
|
+
"items": {
|
|
597
|
+
"type": "number"
|
|
598
|
+
},
|
|
599
|
+
"description": "The notarization data as a byte array."
|
|
600
|
+
},
|
|
601
|
+
"immutableDescription": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "An optional description of the notarization that cannot be changed after creation."
|
|
604
|
+
},
|
|
605
|
+
"description": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"description": "An optional description of the notarization that can be modified until the notarization is locked."
|
|
608
|
+
},
|
|
609
|
+
"deleteLockDateTime": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"description": "An optional lock date, in ISO 8601 format, that prevents deletion until the date is reached.\nUsed only in Locked Notarization, it prevents the object from being deleted until the lock expires."
|
|
612
|
+
},
|
|
613
|
+
"transferLockUntilDestroyed": {
|
|
614
|
+
"type": "boolean",
|
|
615
|
+
"description": "An optional flag indicating transfer lock is active until the notarization is destroyed.\nUsed only in Dynamic Notarization."
|
|
616
|
+
},
|
|
617
|
+
"transferLockDateTime": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"description": "An optional transfer lock date-time, in ISO 8601 format.\nUsed only in Dynamic Notarization."
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"required": [
|
|
623
|
+
"id",
|
|
624
|
+
"mode",
|
|
625
|
+
"dateCreated",
|
|
626
|
+
"data"
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
"NotarizationCreateRequest": {
|
|
630
|
+
"type": "object",
|
|
631
|
+
"properties": {
|
|
632
|
+
"mode": {
|
|
633
|
+
"$ref": "#/components/schemas/NotarizationMode"
|
|
634
|
+
},
|
|
635
|
+
"dateModified": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"description": "The date and time when the notarization was last modified, in ISO 8601 format."
|
|
638
|
+
},
|
|
639
|
+
"data": {
|
|
640
|
+
"type": "array",
|
|
641
|
+
"items": {
|
|
642
|
+
"type": "number"
|
|
643
|
+
},
|
|
644
|
+
"description": "The notarization data as a byte array."
|
|
645
|
+
},
|
|
646
|
+
"immutableDescription": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "An optional description of the notarization that cannot be changed after creation."
|
|
649
|
+
},
|
|
650
|
+
"description": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"description": "An optional description of the notarization that can be modified until the notarization is locked."
|
|
653
|
+
},
|
|
654
|
+
"deleteLockDateTime": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"description": "An optional lock date, in ISO 8601 format, that prevents deletion until the date is reached.\nUsed only in Locked Notarization, it prevents the object from being deleted until the lock expires."
|
|
657
|
+
},
|
|
658
|
+
"transferLockUntilDestroyed": {
|
|
659
|
+
"type": "boolean",
|
|
660
|
+
"description": "An optional flag indicating transfer lock is active until the notarization is destroyed.\nUsed only in Dynamic Notarization."
|
|
661
|
+
},
|
|
662
|
+
"transferLockDateTime": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"description": "An optional transfer lock date-time, in ISO 8601 format.\nUsed only in Dynamic Notarization."
|
|
665
|
+
},
|
|
666
|
+
"namespace": {
|
|
667
|
+
"type": "string",
|
|
668
|
+
"description": "The namespace of the connector to use for the notarization, defaults to component configured namespace."
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"required": [
|
|
672
|
+
"mode",
|
|
673
|
+
"data"
|
|
674
|
+
],
|
|
675
|
+
"description": "The request data."
|
|
676
|
+
},
|
|
677
|
+
"NotarizationMode": {
|
|
678
|
+
"description": "Supported notarization mode values.",
|
|
679
|
+
"anyOf": [
|
|
680
|
+
{
|
|
681
|
+
"const": "dynamic",
|
|
682
|
+
"description": "Dynamic notarization mode."
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"const": "locked",
|
|
686
|
+
"description": "Locked notarization mode."
|
|
687
|
+
}
|
|
688
|
+
]
|
|
689
|
+
},
|
|
690
|
+
"NotarizationTransferRequest": {
|
|
691
|
+
"type": "object",
|
|
692
|
+
"properties": {
|
|
693
|
+
"recipientAddress": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"description": "The recipient address."
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"required": [
|
|
699
|
+
"recipientAddress"
|
|
700
|
+
],
|
|
701
|
+
"description": "The request data."
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
"securitySchemes": {
|
|
705
|
+
"jwtBearerAuthScheme": {
|
|
706
|
+
"type": "http",
|
|
707
|
+
"scheme": "bearer",
|
|
708
|
+
"bearerFormat": "JWT"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|