@axinom/mosaic-messages 0.29.0-rc.0 → 0.29.0-rc.17

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.
Files changed (46) hide show
  1. package/dist/generated/schemas/payloads/ax-auth/index.d.ts +1 -0
  2. package/dist/generated/schemas/payloads/ax-auth/index.d.ts.map +1 -1
  3. package/dist/generated/schemas/payloads/ax-auth/index.js +1 -0
  4. package/dist/generated/schemas/payloads/ax-auth/index.js.map +1 -1
  5. package/dist/generated/schemas/payloads/ax-auth/types/index.d.ts +63 -0
  6. package/dist/generated/schemas/payloads/ax-auth/types/index.d.ts.map +1 -0
  7. package/dist/generated/schemas/payloads/ax-auth/types/index.js +8 -0
  8. package/dist/generated/schemas/payloads/ax-auth/types/index.js.map +1 -0
  9. package/dist/generated/schemas/payloads/ax-auth/types/password-reset-webhook-payload.json +34 -0
  10. package/dist/generated/schemas/payloads/ax-auth/types/user-sign-up-webhook-payload.json +34 -0
  11. package/dist/generated/schemas/payloads/user/index.d.ts +1 -0
  12. package/dist/generated/schemas/payloads/user/index.d.ts.map +1 -1
  13. package/dist/generated/schemas/payloads/user/index.js +1 -0
  14. package/dist/generated/schemas/payloads/user/index.js.map +1 -1
  15. package/dist/generated/schemas/payloads/user/types/access-token-enrichment-webhook-request-payload.json +62 -0
  16. package/dist/generated/schemas/payloads/user/types/access-token-enrichment-webhook-response-payload.json +8 -0
  17. package/dist/generated/schemas/payloads/user/types/index.d.ts +245 -0
  18. package/dist/generated/schemas/payloads/user/types/index.d.ts.map +1 -0
  19. package/dist/generated/schemas/payloads/user/types/index.js +14 -0
  20. package/dist/generated/schemas/payloads/user/types/index.js.map +1 -0
  21. package/dist/generated/schemas/payloads/user/types/user-created-webhook-request-payload.json +42 -0
  22. package/dist/generated/schemas/payloads/user/types/user-info-webhook-request-payload.json +16 -0
  23. package/dist/generated/schemas/payloads/user/types/user-info-webhook-response-payload.json +150 -0
  24. package/dist/generated/schemas/payloads/video/types/entitlement-webhook-response-payload.json +30 -0
  25. package/dist/generated/schemas/payloads/video/types/index.d.ts +365 -0
  26. package/dist/generated/schemas/payloads/video/types/index.d.ts.map +1 -1
  27. package/dist/generated/schemas/payloads/video/types/index.js +7 -1
  28. package/dist/generated/schemas/payloads/video/types/index.js.map +1 -1
  29. package/dist/generated/schemas/payloads/video/types/manifest-webhook-response-payload.json +24 -0
  30. package/dist/generated/schemas/payloads/video/types/playback-video-webhook-request-payload.json +476 -0
  31. package/package.json +4 -4
  32. package/src/generated/schemas/payloads/ax-auth/index.ts +2 -1
  33. package/src/generated/schemas/payloads/ax-auth/types/index.ts +5 -0
  34. package/src/generated/schemas/payloads/ax-auth/types/password-reset-webhook-payload.json +34 -0
  35. package/src/generated/schemas/payloads/ax-auth/types/user-sign-up-webhook-payload.json +34 -0
  36. package/src/generated/schemas/payloads/user/index.ts +2 -1
  37. package/src/generated/schemas/payloads/user/types/access-token-enrichment-webhook-request-payload.json +62 -0
  38. package/src/generated/schemas/payloads/user/types/access-token-enrichment-webhook-response-payload.json +8 -0
  39. package/src/generated/schemas/payloads/user/types/index.ts +11 -0
  40. package/src/generated/schemas/payloads/user/types/user-created-webhook-request-payload.json +42 -0
  41. package/src/generated/schemas/payloads/user/types/user-info-webhook-request-payload.json +16 -0
  42. package/src/generated/schemas/payloads/user/types/user-info-webhook-response-payload.json +150 -0
  43. package/src/generated/schemas/payloads/video/types/entitlement-webhook-response-payload.json +30 -0
  44. package/src/generated/schemas/payloads/video/types/index.ts +7 -1
  45. package/src/generated/schemas/payloads/video/types/manifest-webhook-response-payload.json +24 -0
  46. package/src/generated/schemas/payloads/video/types/playback-video-webhook-request-payload.json +476 -0
@@ -0,0 +1,476 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "playback_video_webhook_request_payload",
5
+ "description": "The webhook payload schema to request the entitlement message JWT and HLS and/or DASH manifest URL(s) for video playback.",
6
+ "additionalProperties": true,
7
+ "required": [
8
+ "video",
9
+ "management_user"
10
+ ],
11
+ "properties": {
12
+ "video": {
13
+ "type": "object",
14
+ "title": "video",
15
+ "description": "Video metadata to be used to enable its playback.",
16
+ "additionalProperties": true,
17
+ "required": [
18
+ "id",
19
+ "title",
20
+ "source_location",
21
+ "is_archived",
22
+ "videos_tags",
23
+ "video_encoding"
24
+ ],
25
+ "properties": {
26
+ "id": {
27
+ "type": "string",
28
+ "minLength": 32,
29
+ "maxLength": 36,
30
+ "format": "uuid",
31
+ "description": "A UUID."
32
+ },
33
+ "title": {
34
+ "type": "string",
35
+ "description": "Video title"
36
+ },
37
+ "source_file_name": {
38
+ "type": [
39
+ "string",
40
+ "null"
41
+ ],
42
+ "description": "Source file name"
43
+ },
44
+ "source_file_extension": {
45
+ "type": [
46
+ "string",
47
+ "null"
48
+ ],
49
+ "description": "Source file extension"
50
+ },
51
+ "source_full_file_name": {
52
+ "type": [
53
+ "string",
54
+ "null"
55
+ ],
56
+ "description": "Full source file name, including extension"
57
+ },
58
+ "source_location": {
59
+ "type": "string",
60
+ "description": "Path to the folder in the storage that contains source video files"
61
+ },
62
+ "source_size_in_bytes": {
63
+ "type": [
64
+ "number",
65
+ "null"
66
+ ],
67
+ "description": "Combined size of all source video files"
68
+ },
69
+ "is_archived": {
70
+ "type": "boolean",
71
+ "description": "Is video archived or not"
72
+ },
73
+ "videos_tags": {
74
+ "type": "array",
75
+ "description": "An array of video tag values.",
76
+ "uniqueItems": true,
77
+ "additionalItems": false,
78
+ "items": {
79
+ "type": "string",
80
+ "description": "A tag value."
81
+ }
82
+ },
83
+ "video_encoding": {
84
+ "type": "object",
85
+ "title": "video_encoding",
86
+ "description": "Information about specific video encoding.",
87
+ "additionalProperties": true,
88
+ "required": [
89
+ "is_protected",
90
+ "encoding_state",
91
+ "output_format",
92
+ "preview_status",
93
+ "video_streams",
94
+ "audio_languages",
95
+ "subtitle_languages",
96
+ "caption_languages"
97
+ ],
98
+ "properties": {
99
+ "is_protected": {
100
+ "type": "boolean",
101
+ "description": "Is video DRM-protected or not"
102
+ },
103
+ "title": {
104
+ "type": "string",
105
+ "description": "Video title"
106
+ },
107
+ "encoding_state": {
108
+ "type": "string",
109
+ "title": "encoding_state",
110
+ "enum": [
111
+ "NOT_STARTED",
112
+ "INITIALIZING",
113
+ "WAITING",
114
+ "IN_PROGRESS",
115
+ "READY",
116
+ "ERROR"
117
+ ],
118
+ "description": "Encoding state."
119
+ },
120
+ "output_format": {
121
+ "type": "string",
122
+ "title": "output_format",
123
+ "enum": [
124
+ "HLS",
125
+ "DASH",
126
+ "DASH_HLS",
127
+ "CMAF",
128
+ "DASH_ON_DEMAND"
129
+ ],
130
+ "description": "Output format."
131
+ },
132
+ "output_location": {
133
+ "type": "string",
134
+ "description": "Output location"
135
+ },
136
+ "dash_size_in_bytes": {
137
+ "type": [
138
+ "number",
139
+ "null"
140
+ ],
141
+ "description": "DASH output size in bytes"
142
+ },
143
+ "hls_size_in_bytes": {
144
+ "type": [
145
+ "number",
146
+ "null"
147
+ ],
148
+ "description": "HLS output size in bytes"
149
+ },
150
+ "cmaf_size_in_bytes": {
151
+ "type": [
152
+ "number",
153
+ "null"
154
+ ],
155
+ "description": "CMAF output size in bytes"
156
+ },
157
+ "dash_manifest_path": {
158
+ "type": [
159
+ "string",
160
+ "null"
161
+ ],
162
+ "description": "Path to the DASH manifest in the output storage"
163
+ },
164
+ "hls_manifest_path": {
165
+ "type": [
166
+ "string",
167
+ "null"
168
+ ],
169
+ "description": "Path to the HLS manifest in the output storage"
170
+ },
171
+ "audio_languages": {
172
+ "type": "array",
173
+ "description": "An array of audio language values.",
174
+ "uniqueItems": true,
175
+ "additionalItems": false,
176
+ "items": {
177
+ "type": [
178
+ "string",
179
+ "null"
180
+ ],
181
+ "description": "An audio language value."
182
+ }
183
+ },
184
+ "caption_languages": {
185
+ "type": "array",
186
+ "description": "An array of closed caption language values.",
187
+ "uniqueItems": true,
188
+ "additionalItems": false,
189
+ "items": {
190
+ "type": [
191
+ "string",
192
+ "null"
193
+ ],
194
+ "description": "A closed caption language value."
195
+ }
196
+ },
197
+ "subtitle_languages": {
198
+ "type": "array",
199
+ "description": "An array of subtitle language values.",
200
+ "uniqueItems": true,
201
+ "additionalItems": false,
202
+ "items": {
203
+ "type": [
204
+ "string",
205
+ "null"
206
+ ],
207
+ "description": "A subtitle language value."
208
+ }
209
+ },
210
+ "duration_in_seconds": {
211
+ "type": [
212
+ "number",
213
+ "null"
214
+ ],
215
+ "description": "@deprecated Use `length_in_seconds` instead"
216
+ },
217
+ "length_in_seconds": {
218
+ "type": [
219
+ "number",
220
+ "null"
221
+ ],
222
+ "description": "Video length in seconds"
223
+ },
224
+ "finished_date": {
225
+ "type": [
226
+ "string",
227
+ "null"
228
+ ],
229
+ "description": "ISO 8601 Datetime when the encoding finished"
230
+ },
231
+ "preview_status": {
232
+ "type": "string",
233
+ "title": "preview_status",
234
+ "enum": [
235
+ "NOT_PREVIEWED",
236
+ "NOT_APPROVED",
237
+ "APPROVED"
238
+ ],
239
+ "description": "Preview status."
240
+ },
241
+ "preview_comment": {
242
+ "type": [
243
+ "string",
244
+ "null"
245
+ ],
246
+ "description": "Preview comment"
247
+ },
248
+ "video_streams": {
249
+ "type": "array",
250
+ "description": "An array of video stream objects.",
251
+ "additionalItems": false,
252
+ "items": {
253
+ "type": "object",
254
+ "title": "video_stream",
255
+ "description": "Information about the video streams for the video encoding.",
256
+ "additionalProperties": true,
257
+ "required": [
258
+ "label",
259
+ "format"
260
+ ],
261
+ "properties": {
262
+ "label": {
263
+ "type": "string",
264
+ "description": "Stream label for grouping streams by the same quality level: audio, sd, hd, uhd1, uhd2."
265
+ },
266
+ "format": {
267
+ "type": "string",
268
+ "title": "output_format",
269
+ "enum": [
270
+ "HLS",
271
+ "DASH",
272
+ "DASH_HLS",
273
+ "CMAF",
274
+ "DASH_ON_DEMAND"
275
+ ],
276
+ "description": "Output format."
277
+ },
278
+ "type": {
279
+ "type": "string",
280
+ "title": "video_stream_type",
281
+ "enum": [
282
+ "VIDEO",
283
+ "AUDIO",
284
+ "SUBTITLE",
285
+ "CLOSED_CAPTION"
286
+ ],
287
+ "description": "Stream type"
288
+ },
289
+ "file": {
290
+ "type": [
291
+ "string",
292
+ "null"
293
+ ],
294
+ "description": "File path to the initialization segment"
295
+ },
296
+ "key_id": {
297
+ "type": [
298
+ "string",
299
+ "null"
300
+ ],
301
+ "description": "Key ID"
302
+ },
303
+ "iv": {
304
+ "type": [
305
+ "string",
306
+ "null"
307
+ ],
308
+ "description": "IV"
309
+ },
310
+ "bitrate_in_kbps": {
311
+ "type": [
312
+ "number",
313
+ "null"
314
+ ],
315
+ "description": "Bitrate in kilobits per second"
316
+ },
317
+ "file_template": {
318
+ "type": [
319
+ "string",
320
+ "null"
321
+ ],
322
+ "description": "File Template"
323
+ },
324
+ "codecs": {
325
+ "type": [
326
+ "string",
327
+ "null"
328
+ ],
329
+ "description": "The used codec like H.264 (AVC), H.265 (HEVC), AAC, ..."
330
+ },
331
+ "frame_rate": {
332
+ "type": [
333
+ "number",
334
+ "null"
335
+ ],
336
+ "description": "Frames per second of the video stream"
337
+ },
338
+ "height": {
339
+ "type": [
340
+ "integer",
341
+ "null"
342
+ ],
343
+ "description": "Height in pixels of the video stream"
344
+ },
345
+ "width": {
346
+ "type": [
347
+ "integer",
348
+ "null"
349
+ ],
350
+ "description": "Width in pixels of the video stream"
351
+ },
352
+ "display_aspect_ratio": {
353
+ "type": [
354
+ "string",
355
+ "null"
356
+ ],
357
+ "description": "The proportional relationship between the width and the height of how to display the video like 16:9, 4:3, 3:2, ..."
358
+ },
359
+ "pixel_aspect_ratio": {
360
+ "type": [
361
+ "string",
362
+ "null"
363
+ ],
364
+ "description": "This ratio describes how the width of a pixel compares to the height of that pixel e.g. 1:1. But pixels are not always square."
365
+ },
366
+ "sampling_rate": {
367
+ "type": [
368
+ "integer",
369
+ "null"
370
+ ],
371
+ "description": "The average number of samples in one second for audio streams."
372
+ },
373
+ "language_code": {
374
+ "type": [
375
+ "string",
376
+ "null"
377
+ ],
378
+ "description": "Language code for for audio, subtitle, or caption streams"
379
+ },
380
+ "language_name": {
381
+ "type": [
382
+ "string",
383
+ "null"
384
+ ],
385
+ "description": "Language name for audio, subtitle, or caption streams"
386
+ }
387
+ }
388
+ }
389
+ }
390
+ }
391
+ }
392
+ }
393
+ },
394
+ "management_user": {
395
+ "type": "object",
396
+ "title": "management_user",
397
+ "description": "Management user metadata to be used to enable video playback.",
398
+ "additionalProperties": true,
399
+ "required": [
400
+ "tenant_id",
401
+ "environment_id",
402
+ "name",
403
+ "permissions",
404
+ "subject_type",
405
+ "iat",
406
+ "aud",
407
+ "iss",
408
+ "sub"
409
+ ],
410
+ "properties": {
411
+ "tenant_id": {
412
+ "type": "string",
413
+ "description": "Tenant ID"
414
+ },
415
+ "environment_id": {
416
+ "type": "string",
417
+ "description": "Environment ID"
418
+ },
419
+ "name": {
420
+ "type": "string",
421
+ "description": "User name"
422
+ },
423
+ "email": {
424
+ "type": "string",
425
+ "description": "User email"
426
+ },
427
+ "permissions": {
428
+ "type": "object",
429
+ "title": "permissions",
430
+ "description": "Permissions assigned to the user",
431
+ "additionalProperties": {
432
+ "type": "array",
433
+ "description": "An array of permissions for the service.",
434
+ "uniqueItems": true,
435
+ "additionalItems": false,
436
+ "items": {
437
+ "type": "string",
438
+ "description": "A permission name."
439
+ }
440
+ }
441
+ },
442
+ "subject_type": {
443
+ "type": "string",
444
+ "title": "subject_type",
445
+ "description": "Type of the subject/user",
446
+ "enum": [
447
+ "ManagedServiceAccount",
448
+ "ServiceAccount",
449
+ "UserAccount",
450
+ "ImpersonatedUserAccount",
451
+ "SuperUserAccount",
452
+ "EnvironmentAdminAccount",
453
+ "EndUserAccount",
454
+ "EndUserApplication"
455
+ ]
456
+ },
457
+ "iat": {
458
+ "type": "number",
459
+ "description": "Issued at (seconds since Unix epoch)"
460
+ },
461
+ "aud": {
462
+ "type": "string",
463
+ "description": "Audience of the original token"
464
+ },
465
+ "iss": {
466
+ "type": "string",
467
+ "description": "Issuer of the original token"
468
+ },
469
+ "sub": {
470
+ "type": "string",
471
+ "description": "Subject/user identifier"
472
+ }
473
+ }
474
+ }
475
+ }
476
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-messages",
3
- "version": "0.29.0-rc.0",
3
+ "version": "0.29.0-rc.17",
4
4
  "description": "Shared types for Axinom Mosaic service messages",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -29,8 +29,8 @@
29
29
  "dev": "concurrently --names \"codegen,tsc\" \"yarn codegen:watch\" \"yarn build:compile:watch\""
30
30
  },
31
31
  "devDependencies": {
32
- "@axinom/mosaic-cli": "^0.18.5-rc.2",
33
- "@axinom/mosaic-message-bus-abstractions": "^0.5.6-rc.2",
32
+ "@axinom/mosaic-cli": "^0.19.0-rc.16",
33
+ "@axinom/mosaic-message-bus-abstractions": "^0.5.6-rc.19",
34
34
  "@types/glob": "^7.1.3",
35
35
  "concurrently": "^5.3.0",
36
36
  "rimraf": "^3.0.2",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "d097678632aee4af6bbe24d3db3ff3c43f46311d"
45
+ "gitHead": "0f3039c90160e439e04093e4e66d711523530e08"
46
46
  }
@@ -1,2 +1,3 @@
1
1
  export * from './commands';
2
- export * from './events';
2
+ export * from './events';
3
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ import * as PasswordResetWebhookPayload from './password-reset-webhook-payload.json';
2
+ import * as UserSignUpWebhookPayload from './user-sign-up-webhook-payload.json';
3
+
4
+ export const PasswordResetWebhookPayloadSchema = PasswordResetWebhookPayload;
5
+ export const UserSignUpWebhookPayloadSchema = UserSignUpWebhookPayload;
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "password_reset_webhook_payload",
5
+ "description": "The webhook payload schema for password reset.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "email",
9
+ "reset_otp"
10
+ ],
11
+ "properties": {
12
+ "email": {
13
+ "type": "string",
14
+ "description": "Email of the user resetting the password."
15
+ },
16
+ "reset_otp": {
17
+ "type": "string",
18
+ "description": "OTP that must be used to confirm the password reset."
19
+ },
20
+ "first_name": {
21
+ "type": "string",
22
+ "description": "First name."
23
+ },
24
+ "last_name": {
25
+ "type": "string",
26
+ "description": "Last name."
27
+ },
28
+ "custom_data": {
29
+ "type": "object",
30
+ "title": "custom_data",
31
+ "description": "Any custom data that will be passed on to the webhook, coming with the Sign Up request."
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "user_sign_up_webhook_payload",
5
+ "description": "The webhook payload schema for end user sign up.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "email",
9
+ "sign_up_otp"
10
+ ],
11
+ "properties": {
12
+ "email": {
13
+ "type": "string",
14
+ "description": "Email of the user signing up."
15
+ },
16
+ "sign_up_otp": {
17
+ "type": "string",
18
+ "description": "OTP that must be used to confirm the user sign up."
19
+ },
20
+ "first_name": {
21
+ "type": "string",
22
+ "description": "First name."
23
+ },
24
+ "last_name": {
25
+ "type": "string",
26
+ "description": "Last name."
27
+ },
28
+ "custom_data": {
29
+ "type": "object",
30
+ "title": "custom_data",
31
+ "description": "Any custom data that will be passed on to the webhook, coming with the Sign Up request."
32
+ }
33
+ }
34
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './commands';
2
- export * from './events';
2
+ export * from './events';
3
+ export * from './types';
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "access_token_enrichment_webhook_request_payload",
5
+ "description": "The request payload schema for Access Token Enrichment webhook.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "tenant_id",
9
+ "environment_id",
10
+ "application_id",
11
+ "session_id",
12
+ "subject_type",
13
+ "profile_id",
14
+ "name",
15
+ "email"
16
+ ],
17
+ "properties": {
18
+ "tenant_id": {
19
+ "type": "string",
20
+ "description": "Tenant ID"
21
+ },
22
+ "environment_id": {
23
+ "type": "string",
24
+ "description": "Environment ID"
25
+ },
26
+ "application_id": {
27
+ "type": "string",
28
+ "description": "Application ID"
29
+ },
30
+ "session_id": {
31
+ "type": "string",
32
+ "description": "Session ID"
33
+ },
34
+ "subject_type": {
35
+ "title": "TokenSubjectType",
36
+ "type": "string",
37
+ "enum": [
38
+ "EndUserAccount",
39
+ "EndUserApplication"
40
+ ],
41
+ "description": "Subject Type"
42
+ },
43
+ "profile_id": {
44
+ "type": "string",
45
+ "description": "Profile ID"
46
+ },
47
+ "name": {
48
+ "type": [
49
+ "string",
50
+ "null"
51
+ ],
52
+ "description": "Name"
53
+ },
54
+ "email": {
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ],
59
+ "description": "Email"
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "access_token_enrichment_webhook_response_payload",
5
+ "description": "The response payload schema for Access Token Enrichment webhook.",
6
+ "additionalProperties": true,
7
+ "properties": {}
8
+ }