@nxtedition/types 23.0.50 → 23.0.52

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 (50) hide show
  1. package/dist/common/file.d.ts +1 -0
  2. package/dist/common/file.js +7 -2
  3. package/dist/common/settings.d.ts +1 -0
  4. package/dist/nxtpression.d.ts +157 -63
  5. package/dist/records/domains/connection/empty.d.ts +7 -0
  6. package/dist/records/domains/connection/facebook.d.ts +8 -0
  7. package/dist/records/domains/connection/file/ftp.d.ts +9 -0
  8. package/dist/records/domains/connection/file/ftp.js +1 -0
  9. package/dist/records/domains/connection/file/index.d.ts +29 -0
  10. package/dist/records/domains/connection/file/index.js +4 -0
  11. package/dist/records/domains/connection/file/s3.d.ts +6 -0
  12. package/dist/records/domains/connection/file/s3.js +1 -0
  13. package/dist/records/domains/connection/file/sftp.d.ts +12 -0
  14. package/dist/records/domains/connection/file/sftp.js +1 -0
  15. package/dist/records/domains/connection/file/smb.d.ts +9 -0
  16. package/dist/records/domains/connection/file/smb.js +1 -0
  17. package/dist/records/domains/connection/index.d.ts +38 -0
  18. package/dist/records/domains/connection/index.js +4 -0
  19. package/dist/records/domains/connection/reuters.d.ts +10 -0
  20. package/dist/records/domains/connection/reuters.js +1 -0
  21. package/dist/records/domains/general.d.ts +16 -0
  22. package/dist/records/domains/index.d.ts +4 -4
  23. package/dist/records/domains/index.js +2 -2
  24. package/dist/records/domains/publish/empty.d.ts +8 -0
  25. package/dist/records/domains/publish/empty.js +1 -0
  26. package/dist/records/domains/publish/facebook.d.ts +11 -0
  27. package/dist/records/domains/publish/facebook.js +1 -0
  28. package/dist/records/domains/publish/file-legacy.d.ts +26 -0
  29. package/dist/records/domains/publish/file-legacy.js +1 -0
  30. package/dist/records/domains/publish/file.d.ts +66 -0
  31. package/dist/records/domains/publish/file.js +1 -0
  32. package/dist/records/domains/publish/index.d.ts +66 -0
  33. package/dist/records/domains/publish/index.js +5 -0
  34. package/dist/records/domains/publish/youtube.d.ts +16 -0
  35. package/dist/records/domains/publish/youtube.js +1 -0
  36. package/dist/records/exact/storage.d.ts +1 -1
  37. package/dist/records/validate/assert-guard.js +570 -687
  38. package/dist/records/validate/assert.js +579 -694
  39. package/dist/records/validate/is.js +51 -109
  40. package/dist/records/validate/schemas.js +421 -380
  41. package/dist/records/validate/stringify.js +74 -155
  42. package/dist/records/validate/utils.d.ts +2 -0
  43. package/dist/records/validate/utils.js +3 -0
  44. package/dist/records/validate/validate-equals.js +961 -819
  45. package/dist/records/validate/validate.js +550 -638
  46. package/package.json +1 -1
  47. package/dist/records/domains/connection.d.ts +0 -77
  48. package/dist/records/domains/publish.d.ts +0 -149
  49. /package/dist/records/domains/{connection.js → connection/empty.js} +0 -0
  50. /package/dist/records/domains/{publish.js → connection/facebook.js} +0 -0
@@ -933,7 +933,6 @@ function _schemasExactRecord(name) {
933
933
  "capacity",
934
934
  "origin",
935
935
  "allows",
936
- "net",
937
936
  "latency"
938
937
  ]
939
938
  }
@@ -3006,44 +3005,30 @@ function _schemasDomainRecord(domain) {
3006
3005
  version: "3.1",
3007
3006
  components: {
3008
3007
  schemas: {
3009
- ConnectionRecord: {
3010
- oneOf: [
3011
- {
3012
- $ref: "#/components/schemas/FileConnectionS3Record"
3013
- },
3014
- {
3015
- $ref: "#/components/schemas/FileConnectionFtpRecord"
3008
+ FileConnectionFtpRecord: {
3009
+ type: "object",
3010
+ properties: {
3011
+ protocol: {
3012
+ "const": "ftp"
3016
3013
  },
3017
- {
3018
- $ref: "#/components/schemas/FileConnectionSmbRecord"
3014
+ host: {
3015
+ type: "string"
3019
3016
  },
3020
- {
3021
- $ref: "#/components/schemas/FileConnectionSftpRecord"
3017
+ username: {
3018
+ type: "string"
3022
3019
  },
3023
- {
3024
- $ref: "#/components/schemas/ReutersConnectionRecord"
3020
+ password: {
3021
+ type: "string"
3025
3022
  },
3026
- {
3027
- $ref: "#/components/schemas/FacebookConnectionRecord"
3028
- }
3029
- ]
3030
- },
3031
- FileConnectionS3Record: {
3032
- type: "object",
3033
- properties: {
3034
- protocol: {
3035
- "const": "s3"
3023
+ utf8: {
3024
+ type: "boolean"
3036
3025
  },
3037
- client: {},
3038
- bucket: {
3026
+ timezone: {
3039
3027
  type: "string"
3040
3028
  },
3041
3029
  type: {
3042
3030
  "const": "file"
3043
3031
  },
3044
- host: {
3045
- type: "string"
3046
- },
3047
3032
  port: {
3048
3033
  oneOf: [
3049
3034
  {
@@ -3086,33 +3071,26 @@ function _schemasDomainRecord(domain) {
3086
3071
  },
3087
3072
  required: [
3088
3073
  "protocol",
3074
+ "host",
3089
3075
  "type"
3090
3076
  ]
3091
3077
  },
3092
- FileConnectionFtpRecord: {
3078
+ FileConnectionS3Record: {
3093
3079
  type: "object",
3094
3080
  properties: {
3095
3081
  protocol: {
3096
- "const": "ftp"
3097
- },
3098
- host: {
3099
- type: "string"
3100
- },
3101
- username: {
3102
- type: "string"
3103
- },
3104
- password: {
3105
- type: "string"
3106
- },
3107
- utf8: {
3108
- type: "boolean"
3082
+ "const": "s3"
3109
3083
  },
3110
- timezone: {
3084
+ client: {},
3085
+ bucket: {
3111
3086
  type: "string"
3112
3087
  },
3113
3088
  type: {
3114
3089
  "const": "file"
3115
3090
  },
3091
+ host: {
3092
+ type: "string"
3093
+ },
3116
3094
  port: {
3117
3095
  oneOf: [
3118
3096
  {
@@ -3155,7 +3133,6 @@ function _schemasDomainRecord(domain) {
3155
3133
  },
3156
3134
  required: [
3157
3135
  "protocol",
3158
- "host",
3159
3136
  "type"
3160
3137
  ]
3161
3138
  },
@@ -3322,6 +3299,26 @@ function _schemasDomainRecord(domain) {
3322
3299
  "type"
3323
3300
  ]
3324
3301
  },
3302
+ FacebookConnectionRecord: {
3303
+ type: "object",
3304
+ properties: {
3305
+ type: {
3306
+ "const": "facebook"
3307
+ },
3308
+ grantedScopes: {
3309
+ type: "array",
3310
+ items: {
3311
+ type: "string"
3312
+ }
3313
+ },
3314
+ userNotificationsEnabled: {
3315
+ type: "boolean"
3316
+ }
3317
+ },
3318
+ required: [
3319
+ "type"
3320
+ ]
3321
+ },
3325
3322
  ReutersConnectionRecord: {
3326
3323
  type: "object",
3327
3324
  properties: {
@@ -3345,17 +3342,11 @@ function _schemasDomainRecord(domain) {
3345
3342
  "type"
3346
3343
  ]
3347
3344
  },
3348
- FacebookConnectionRecord: {
3345
+ EmptyConnectionRecord: {
3349
3346
  type: "object",
3350
3347
  properties: {
3351
3348
  type: {
3352
- "const": "facebook"
3353
- },
3354
- grantedScopes: {
3355
- type: "array",
3356
- items: {
3357
- type: "string"
3358
- }
3349
+ type: "null"
3359
3350
  },
3360
3351
  userNotificationsEnabled: {
3361
3352
  type: "boolean"
@@ -3369,7 +3360,29 @@ function _schemasDomainRecord(domain) {
3369
3360
  },
3370
3361
  schemas: [
3371
3362
  {
3372
- $ref: "#/components/schemas/ConnectionRecord"
3363
+ oneOf: [
3364
+ {
3365
+ $ref: "#/components/schemas/FileConnectionFtpRecord"
3366
+ },
3367
+ {
3368
+ $ref: "#/components/schemas/FileConnectionS3Record"
3369
+ },
3370
+ {
3371
+ $ref: "#/components/schemas/FileConnectionSmbRecord"
3372
+ },
3373
+ {
3374
+ $ref: "#/components/schemas/FileConnectionSftpRecord"
3375
+ },
3376
+ {
3377
+ $ref: "#/components/schemas/FacebookConnectionRecord"
3378
+ },
3379
+ {
3380
+ $ref: "#/components/schemas/ReutersConnectionRecord"
3381
+ },
3382
+ {
3383
+ $ref: "#/components/schemas/EmptyConnectionRecord"
3384
+ }
3385
+ ]
3373
3386
  }
3374
3387
  ]
3375
3388
  };
@@ -3379,7 +3392,7 @@ function _schemasDomainRecord(domain) {
3379
3392
  version: "3.1",
3380
3393
  components: {
3381
3394
  schemas: {
3382
- ConnectionDomainMethodsRecord: {
3395
+ ConnectionMethodsBase: {
3383
3396
  type: "object",
3384
3397
  properties: {},
3385
3398
  required: [],
@@ -3396,7 +3409,7 @@ function _schemasDomainRecord(domain) {
3396
3409
  },
3397
3410
  schemas: [
3398
3411
  {
3399
- $ref: "#/components/schemas/ConnectionDomainMethodsRecord"
3412
+ $ref: "#/components/schemas/ConnectionMethodsBase"
3400
3413
  }
3401
3414
  ]
3402
3415
  };
@@ -3406,7 +3419,7 @@ function _schemasDomainRecord(domain) {
3406
3419
  version: "3.1",
3407
3420
  components: {
3408
3421
  schemas: {
3409
- ConnectionStatsRecord: {
3422
+ ConnectionStatsBase: {
3410
3423
  type: "object",
3411
3424
  properties: {
3412
3425
  status: {
@@ -3434,7 +3447,7 @@ function _schemasDomainRecord(domain) {
3434
3447
  },
3435
3448
  schemas: [
3436
3449
  {
3437
- $ref: "#/components/schemas/ConnectionStatsRecord"
3450
+ $ref: "#/components/schemas/ConnectionStatsBase"
3438
3451
  }
3439
3452
  ]
3440
3453
  };
@@ -4241,6 +4254,9 @@ function _schemasDomainRecord(domain) {
4241
4254
  type: "number",
4242
4255
  minimum: 0
4243
4256
  },
4257
+ complete: {
4258
+ type: "boolean"
4259
+ },
4244
4260
  id: {
4245
4261
  type: "string",
4246
4262
  pattern: "^[0-9A-Za-z~][0-9A-Za-z~._: -]*$"
@@ -4315,6 +4331,7 @@ function _schemasDomainRecord(domain) {
4315
4331
  "replicas",
4316
4332
  "locations",
4317
4333
  "ranges",
4334
+ "complete",
4318
4335
  "id",
4319
4336
  "size",
4320
4337
  "seekable",
@@ -4601,6 +4618,82 @@ function _schemasDomainRecord(domain) {
4601
4618
  ]
4602
4619
  };
4603
4620
  }
4621
+ case ":general._asset": {
4622
+ return {
4623
+ version: "3.1",
4624
+ components: {
4625
+ schemas: {
4626
+ GeneralAssetRecord: {
4627
+ type: "object",
4628
+ properties: {
4629
+ title: {
4630
+ type: "string"
4631
+ },
4632
+ tags: {
4633
+ type: "string"
4634
+ },
4635
+ media: {
4636
+ type: "string"
4637
+ },
4638
+ duration: {
4639
+ type: "string"
4640
+ },
4641
+ deadlines: {
4642
+ type: "string"
4643
+ },
4644
+ assignees: {
4645
+ type: "string"
4646
+ },
4647
+ locations: {
4648
+ type: "string"
4649
+ },
4650
+ status: {
4651
+ type: "string"
4652
+ },
4653
+ storage: {
4654
+ type: "string"
4655
+ }
4656
+ },
4657
+ required: []
4658
+ }
4659
+ }
4660
+ },
4661
+ schemas: [
4662
+ {
4663
+ $ref: "#/components/schemas/GeneralAssetRecord"
4664
+ }
4665
+ ]
4666
+ };
4667
+ }
4668
+ case ":general._embedding": {
4669
+ return {
4670
+ version: "3.1",
4671
+ components: {
4672
+ schemas: {
4673
+ GeneralEmbeddingRecord: {
4674
+ type: "object",
4675
+ properties: {},
4676
+ required: [],
4677
+ additionalProperties: {
4678
+ oneOf: [
4679
+ {
4680
+ type: "null"
4681
+ },
4682
+ {
4683
+ type: "string"
4684
+ }
4685
+ ]
4686
+ }
4687
+ }
4688
+ }
4689
+ },
4690
+ schemas: [
4691
+ {
4692
+ $ref: "#/components/schemas/GeneralEmbeddingRecord"
4693
+ }
4694
+ ]
4695
+ };
4696
+ }
4604
4697
  case ":media.source": {
4605
4698
  return {
4606
4699
  version: "3.1",
@@ -6923,54 +7016,35 @@ function _schemasDomainRecord(domain) {
6923
7016
  version: "3.1",
6924
7017
  components: {
6925
7018
  schemas: {
6926
- PublishRecord: {
6927
- oneOf: [
6928
- {
6929
- $ref: "#/components/schemas/YoutubePublishRecord"
6930
- },
6931
- {
6932
- $ref: "#/components/schemas/FacebookPublishRecord"
6933
- },
6934
- {
6935
- $ref: "#/components/schemas/FilePublishRecord"
6936
- },
6937
- {
6938
- $ref: "#/components/schemas/FilePublishRecordLegacy"
7019
+ EmptyPublishRecord: {
7020
+ type: "object",
7021
+ properties: {
7022
+ type: {
7023
+ type: "null"
6939
7024
  },
6940
- {
6941
- $ref: "#/components/schemas/EmptyPublishRecord"
7025
+ asset: {
7026
+ oneOf: [
7027
+ {
7028
+ type: "null"
7029
+ },
7030
+ {
7031
+ type: "string"
7032
+ }
7033
+ ]
6942
7034
  }
7035
+ },
7036
+ required: [
7037
+ "type"
6943
7038
  ]
6944
7039
  },
6945
- YoutubePublishRecord: {
7040
+ FacebookPublishRecord: {
6946
7041
  type: "object",
6947
7042
  properties: {
6948
- draft: {
6949
- type: "object",
6950
- properties: {
6951
- snippet: {
6952
- type: "object",
6953
- properties: {
6954
- title: {
6955
- type: "string"
6956
- },
6957
- tags: {
6958
- type: "array",
6959
- items: {
6960
- type: "string"
6961
- }
6962
- },
6963
- description: {
6964
- type: "string"
6965
- }
6966
- },
6967
- required: []
6968
- }
6969
- },
6970
- required: []
6971
- },
6972
7043
  type: {
6973
- "const": "youtube"
7044
+ "const": "facebook"
7045
+ },
7046
+ pageId: {
7047
+ type: "string"
6974
7048
  },
6975
7049
  asset: {
6976
7050
  oneOf: [
@@ -6986,14 +7060,11 @@ function _schemasDomainRecord(domain) {
6986
7060
  type: "string"
6987
7061
  },
6988
7062
  render: {
6989
- $ref: "#/components/schemas/PublishRender"
6990
- },
6991
- published: {
6992
- $ref: "#/components/schemas/Recordstringunknown"
6993
- },
6994
- remote: {
6995
- $ref: "#/components/schemas/Recordstringunknown"
7063
+ $ref: "#/components/schemas/PublishRenderBase"
6996
7064
  },
7065
+ draft: {},
7066
+ published: {},
7067
+ remote: {},
6997
7068
  error: {
6998
7069
  oneOf: [
6999
7070
  {
@@ -7023,7 +7094,7 @@ function _schemasDomainRecord(domain) {
7023
7094
  "type"
7024
7095
  ]
7025
7096
  },
7026
- PublishRender: {
7097
+ PublishRenderBase: {
7027
7098
  type: "object",
7028
7099
  properties: {
7029
7100
  preset: {
@@ -7314,13 +7385,6 @@ function _schemasDomainRecord(domain) {
7314
7385
  },
7315
7386
  required: []
7316
7387
  },
7317
- Recordstringunknown: {
7318
- type: "object",
7319
- properties: {},
7320
- required: [],
7321
- description: "Construct a type with a set of properties K of type T",
7322
- additionalProperties: {}
7323
- },
7324
7388
  Message: {
7325
7389
  type: "object",
7326
7390
  properties: {
@@ -7340,39 +7404,42 @@ function _schemasDomainRecord(domain) {
7340
7404
  "msg"
7341
7405
  ]
7342
7406
  },
7343
- FacebookPublishRecord: {
7407
+ FilePublishRecordLegacy: {
7344
7408
  type: "object",
7345
7409
  properties: {
7346
- pageId: {
7347
- type: "string"
7348
- },
7349
7410
  type: {
7350
- "const": "facebook"
7411
+ "const": "file"
7351
7412
  },
7352
- asset: {
7353
- oneOf: [
7354
- {
7355
- type: "null"
7356
- },
7357
- {
7358
- type: "string"
7359
- }
7360
- ]
7413
+ directory: {
7414
+ type: "string"
7361
7415
  },
7362
- connection: {
7416
+ filename: {
7363
7417
  type: "string"
7364
7418
  },
7365
- render: {
7366
- $ref: "#/components/schemas/PublishRender"
7367
- },
7368
7419
  draft: {
7369
- $ref: "#/components/schemas/Recordstringunknown"
7420
+ $ref: "#/components/schemas/FilePublishDraft"
7421
+ },
7422
+ remote: {
7423
+ $ref: "#/components/schemas/FilePublishRemoteLegacy"
7370
7424
  },
7371
7425
  published: {
7372
- $ref: "#/components/schemas/Recordstringunknown"
7426
+ $ref: "#/components/schemas/FilePublishPublished"
7373
7427
  },
7374
- remote: {
7375
- $ref: "#/components/schemas/Recordstringunknown"
7428
+ asset: {
7429
+ oneOf: [
7430
+ {
7431
+ type: "null"
7432
+ },
7433
+ {
7434
+ type: "string"
7435
+ }
7436
+ ]
7437
+ },
7438
+ connection: {
7439
+ type: "string"
7440
+ },
7441
+ render: {
7442
+ $ref: "#/components/schemas/PublishRenderBase"
7376
7443
  },
7377
7444
  error: {
7378
7445
  oneOf: [
@@ -7403,9 +7470,82 @@ function _schemasDomainRecord(domain) {
7403
7470
  "type"
7404
7471
  ]
7405
7472
  },
7473
+ FilePublishDraft: {
7474
+ type: "object",
7475
+ properties: {
7476
+ directory: {
7477
+ type: "string"
7478
+ },
7479
+ filename: {
7480
+ type: "string"
7481
+ }
7482
+ },
7483
+ required: []
7484
+ },
7485
+ FilePublishRemoteLegacy: {
7486
+ type: "object",
7487
+ properties: {
7488
+ id: {
7489
+ type: "string"
7490
+ },
7491
+ path: {
7492
+ type: "string"
7493
+ },
7494
+ filename: {
7495
+ type: "string"
7496
+ },
7497
+ directory: {
7498
+ type: "string"
7499
+ },
7500
+ subtitle: {
7501
+ type: "object",
7502
+ properties: {
7503
+ path: {
7504
+ type: "string"
7505
+ }
7506
+ },
7507
+ required: [
7508
+ "path"
7509
+ ]
7510
+ },
7511
+ metafile: {
7512
+ type: "object",
7513
+ properties: {
7514
+ path: {
7515
+ type: "string"
7516
+ }
7517
+ },
7518
+ required: [
7519
+ "path"
7520
+ ]
7521
+ }
7522
+ },
7523
+ required: [
7524
+ "path",
7525
+ "filename"
7526
+ ],
7527
+ additionalProperties: {}
7528
+ },
7529
+ FilePublishPublished: {
7530
+ type: "object",
7531
+ properties: {
7532
+ directory: {
7533
+ type: "string"
7534
+ },
7535
+ filename: {
7536
+ type: "string"
7537
+ }
7538
+ },
7539
+ required: [
7540
+ "filename"
7541
+ ]
7542
+ },
7406
7543
  FilePublishRecord: {
7407
7544
  type: "object",
7408
7545
  properties: {
7546
+ type: {
7547
+ "const": "file"
7548
+ },
7409
7549
  directory: {
7410
7550
  type: "string"
7411
7551
  },
@@ -7424,9 +7564,6 @@ function _schemasDomainRecord(domain) {
7424
7564
  published: {
7425
7565
  $ref: "#/components/schemas/FilePublishPublished"
7426
7566
  },
7427
- type: {
7428
- "const": "file"
7429
- },
7430
7567
  asset: {
7431
7568
  oneOf: [
7432
7569
  {
@@ -7441,7 +7578,7 @@ function _schemasDomainRecord(domain) {
7441
7578
  type: "string"
7442
7579
  },
7443
7580
  render: {
7444
- $ref: "#/components/schemas/PublishRender"
7581
+ $ref: "#/components/schemas/PublishRenderBase"
7445
7582
  },
7446
7583
  error: {
7447
7584
  oneOf: [
@@ -7490,16 +7627,13 @@ function _schemasDomainRecord(domain) {
7490
7627
  $ref: "#/components/schemas/ResolvedFilePublishRender"
7491
7628
  },
7492
7629
  {
7493
- $ref: "#/components/schemas/__type.o12"
7630
+ $ref: "#/components/schemas/__type.o10"
7494
7631
  }
7495
7632
  ]
7496
7633
  },
7497
7634
  ResolvedFilePublishRender: {
7498
7635
  type: "object",
7499
7636
  properties: {
7500
- preset: {
7501
- type: "string"
7502
- },
7503
7637
  name: {
7504
7638
  type: "string"
7505
7639
  },
@@ -7519,6 +7653,9 @@ function _schemasDomainRecord(domain) {
7519
7653
  ignoreEmptyScene: {
7520
7654
  type: "boolean"
7521
7655
  },
7656
+ preset: {
7657
+ type: "string"
7658
+ },
7522
7659
  type: {
7523
7660
  type: "string"
7524
7661
  },
@@ -7534,11 +7671,11 @@ function _schemasDomainRecord(domain) {
7534
7671
  "type"
7535
7672
  ]
7536
7673
  },
7537
- "__type.o12": {
7674
+ "__type.o10": {
7538
7675
  type: "object",
7539
7676
  properties: {
7540
7677
  __context: {
7541
- $ref: "#/components/schemas/__type.o13",
7678
+ $ref: "#/components/schemas/__type.o11",
7542
7679
  description: "TS-HACK: this property doesn't really exist on the nxtpression string,\nit is only here to make sure the generic Context won't get stripped."
7543
7680
  },
7544
7681
  __returnValue: {
@@ -7551,7 +7688,7 @@ function _schemasDomainRecord(domain) {
7551
7688
  "__returnValue"
7552
7689
  ]
7553
7690
  },
7554
- "__type.o13": {
7691
+ "__type.o11": {
7555
7692
  type: "object",
7556
7693
  properties: {
7557
7694
  publish: {
@@ -7570,19 +7707,6 @@ function _schemasDomainRecord(domain) {
7570
7707
  "name"
7571
7708
  ]
7572
7709
  },
7573
- FilePublishDraft: {
7574
- type: "object",
7575
- properties: {
7576
- directory: {
7577
- type: "string"
7578
- },
7579
- filename: {
7580
- type: "string"
7581
- }
7582
- },
7583
- required: [],
7584
- additionalProperties: {}
7585
- },
7586
7710
  FilePublishRemote: {
7587
7711
  type: "object",
7588
7712
  properties: {
@@ -7596,8 +7720,7 @@ function _schemasDomainRecord(domain) {
7596
7720
  $ref: "#/components/schemas/RecordstringFilePublishRemoteRender"
7597
7721
  }
7598
7722
  },
7599
- required: [],
7600
- additionalProperties: {}
7723
+ required: []
7601
7724
  },
7602
7725
  RecordstringFilePublishRemoteRender: {
7603
7726
  type: "object",
@@ -7633,41 +7756,35 @@ function _schemasDomainRecord(domain) {
7633
7756
  },
7634
7757
  required: []
7635
7758
  },
7636
- FilePublishPublished: {
7637
- type: "object",
7638
- properties: {
7639
- directory: {
7640
- type: "string"
7641
- },
7642
- filename: {
7643
- type: "string"
7644
- }
7645
- },
7646
- required: [
7647
- "filename"
7648
- ],
7649
- additionalProperties: {}
7650
- },
7651
- FilePublishRecordLegacy: {
7759
+ YoutubePublishRecord: {
7652
7760
  type: "object",
7653
7761
  properties: {
7654
- directory: {
7655
- type: "string"
7656
- },
7657
- filename: {
7658
- type: "string"
7762
+ type: {
7763
+ "const": "youtube"
7659
7764
  },
7660
7765
  draft: {
7661
- $ref: "#/components/schemas/FilePublishDraft"
7662
- },
7663
- remote: {
7664
- $ref: "#/components/schemas/FilePublishRemoteLegacy"
7665
- },
7666
- published: {
7667
- $ref: "#/components/schemas/FilePublishPublished"
7668
- },
7669
- type: {
7670
- "const": "file"
7766
+ type: "object",
7767
+ properties: {
7768
+ snippet: {
7769
+ type: "object",
7770
+ properties: {
7771
+ title: {
7772
+ type: "string"
7773
+ },
7774
+ tags: {
7775
+ type: "array",
7776
+ items: {
7777
+ type: "string"
7778
+ }
7779
+ },
7780
+ description: {
7781
+ type: "string"
7782
+ }
7783
+ },
7784
+ required: []
7785
+ }
7786
+ },
7787
+ required: []
7671
7788
  },
7672
7789
  asset: {
7673
7790
  oneOf: [
@@ -7683,8 +7800,10 @@ function _schemasDomainRecord(domain) {
7683
7800
  type: "string"
7684
7801
  },
7685
7802
  render: {
7686
- $ref: "#/components/schemas/PublishRender"
7803
+ $ref: "#/components/schemas/PublishRenderBase"
7687
7804
  },
7805
+ published: {},
7806
+ remote: {},
7688
7807
  error: {
7689
7808
  oneOf: [
7690
7809
  {
@@ -7713,77 +7832,28 @@ function _schemasDomainRecord(domain) {
7713
7832
  required: [
7714
7833
  "type"
7715
7834
  ]
7716
- },
7717
- FilePublishRemoteLegacy: {
7718
- type: "object",
7719
- properties: {
7720
- id: {
7721
- type: "string"
7722
- },
7723
- path: {
7724
- type: "string"
7725
- },
7726
- filename: {
7727
- type: "string"
7728
- },
7729
- directory: {
7730
- type: "string"
7731
- },
7732
- subtitle: {
7733
- type: "object",
7734
- properties: {
7735
- path: {
7736
- type: "string"
7737
- }
7738
- },
7739
- required: [
7740
- "path"
7741
- ]
7742
- },
7743
- metafile: {
7744
- type: "object",
7745
- properties: {
7746
- path: {
7747
- type: "string"
7748
- }
7749
- },
7750
- required: [
7751
- "path"
7752
- ]
7753
- }
7754
- },
7755
- required: [
7756
- "path",
7757
- "filename"
7758
- ],
7759
- additionalProperties: {}
7760
- },
7761
- EmptyPublishRecord: {
7762
- type: "object",
7763
- properties: {
7764
- type: {
7765
- type: "null"
7766
- },
7767
- asset: {
7768
- oneOf: [
7769
- {
7770
- type: "null"
7771
- },
7772
- {
7773
- type: "string"
7774
- }
7775
- ]
7776
- }
7777
- },
7778
- required: [
7779
- "type"
7780
- ]
7781
7835
  }
7782
7836
  }
7783
7837
  },
7784
7838
  schemas: [
7785
7839
  {
7786
- $ref: "#/components/schemas/PublishRecord"
7840
+ oneOf: [
7841
+ {
7842
+ $ref: "#/components/schemas/EmptyPublishRecord"
7843
+ },
7844
+ {
7845
+ $ref: "#/components/schemas/FacebookPublishRecord"
7846
+ },
7847
+ {
7848
+ $ref: "#/components/schemas/FilePublishRecordLegacy"
7849
+ },
7850
+ {
7851
+ $ref: "#/components/schemas/FilePublishRecord"
7852
+ },
7853
+ {
7854
+ $ref: "#/components/schemas/YoutubePublishRecord"
7855
+ }
7856
+ ]
7787
7857
  }
7788
7858
  ]
7789
7859
  };
@@ -7793,93 +7863,6 @@ function _schemasDomainRecord(domain) {
7793
7863
  version: "3.1",
7794
7864
  components: {
7795
7865
  schemas: {
7796
- PublishStatsRecord: {
7797
- oneOf: [
7798
- {
7799
- $ref: "#/components/schemas/YoutubePublishStatsRecord"
7800
- },
7801
- {
7802
- $ref: "#/components/schemas/FacebookPublishStatsRecord"
7803
- },
7804
- {
7805
- $ref: "#/components/schemas/FilePublishStatsRecord"
7806
- }
7807
- ]
7808
- },
7809
- YoutubePublishStatsRecord: {
7810
- type: "object",
7811
- properties: {
7812
- status: {
7813
- type: "string"
7814
- },
7815
- substatus: {
7816
- type: "string"
7817
- },
7818
- messages: {
7819
- type: "array",
7820
- items: {
7821
- $ref: "#/components/schemas/Message"
7822
- }
7823
- },
7824
- retrieved: {
7825
- $ref: "#/components/schemas/Recordstringunknown"
7826
- },
7827
- defaults: {
7828
- $ref: "#/components/schemas/Recordstringunknown"
7829
- }
7830
- },
7831
- required: []
7832
- },
7833
- Message: {
7834
- type: "object",
7835
- properties: {
7836
- level: {
7837
- type: "number"
7838
- },
7839
- code: {
7840
- type: "string"
7841
- },
7842
- msg: {
7843
- type: "string"
7844
- }
7845
- },
7846
- required: [
7847
- "level",
7848
- "code",
7849
- "msg"
7850
- ]
7851
- },
7852
- Recordstringunknown: {
7853
- type: "object",
7854
- properties: {},
7855
- required: [],
7856
- description: "Construct a type with a set of properties K of type T",
7857
- additionalProperties: {}
7858
- },
7859
- FacebookPublishStatsRecord: {
7860
- type: "object",
7861
- properties: {
7862
- status: {
7863
- type: "string"
7864
- },
7865
- substatus: {
7866
- type: "string"
7867
- },
7868
- messages: {
7869
- type: "array",
7870
- items: {
7871
- $ref: "#/components/schemas/Message"
7872
- }
7873
- },
7874
- retrieved: {
7875
- $ref: "#/components/schemas/Recordstringunknown"
7876
- },
7877
- defaults: {
7878
- $ref: "#/components/schemas/Recordstringunknown"
7879
- }
7880
- },
7881
- required: []
7882
- },
7883
7866
  FilePublishStatsRecord: {
7884
7867
  type: "object",
7885
7868
  properties: {
@@ -7917,8 +7900,7 @@ function _schemasDomainRecord(domain) {
7917
7900
  $ref: "#/components/schemas/RecordstringFilePublishRetrievedRender"
7918
7901
  }
7919
7902
  },
7920
- required: [],
7921
- additionalProperties: {}
7903
+ required: []
7922
7904
  },
7923
7905
  RecordstringFilePublishRetrievedRender: {
7924
7906
  type: "object",
@@ -7963,8 +7945,7 @@ function _schemasDomainRecord(domain) {
7963
7945
  "directory",
7964
7946
  "filename",
7965
7947
  "renders"
7966
- ],
7967
- additionalProperties: {}
7948
+ ]
7968
7949
  },
7969
7950
  RecordstringFilePublishRender: {
7970
7951
  type: "object",
@@ -7991,9 +7972,6 @@ function _schemasDomainRecord(domain) {
7991
7972
  ResolvedFilePublishRender: {
7992
7973
  type: "object",
7993
7974
  properties: {
7994
- preset: {
7995
- type: "string"
7996
- },
7997
7975
  name: {
7998
7976
  type: "string"
7999
7977
  },
@@ -8013,6 +7991,9 @@ function _schemasDomainRecord(domain) {
8013
7991
  ignoreEmptyScene: {
8014
7992
  type: "boolean"
8015
7993
  },
7994
+ preset: {
7995
+ type: "string"
7996
+ },
8016
7997
  type: {
8017
7998
  type: "string"
8018
7999
  },
@@ -8337,6 +8318,9 @@ function _schemasDomainRecord(domain) {
8337
8318
  FilePublishRecord: {
8338
8319
  type: "object",
8339
8320
  properties: {
8321
+ type: {
8322
+ "const": "file"
8323
+ },
8340
8324
  directory: {
8341
8325
  type: "string"
8342
8326
  },
@@ -8355,9 +8339,6 @@ function _schemasDomainRecord(domain) {
8355
8339
  published: {
8356
8340
  $ref: "#/components/schemas/FilePublishPublished"
8357
8341
  },
8358
- type: {
8359
- "const": "file"
8360
- },
8361
8342
  asset: {
8362
8343
  oneOf: [
8363
8344
  {
@@ -8372,7 +8353,7 @@ function _schemasDomainRecord(domain) {
8372
8353
  type: "string"
8373
8354
  },
8374
8355
  render: {
8375
- $ref: "#/components/schemas/PublishRender"
8356
+ $ref: "#/components/schemas/PublishRenderBase"
8376
8357
  },
8377
8358
  error: {
8378
8359
  oneOf: [
@@ -8413,8 +8394,7 @@ function _schemasDomainRecord(domain) {
8413
8394
  type: "string"
8414
8395
  }
8415
8396
  },
8416
- required: [],
8417
- additionalProperties: {}
8397
+ required: []
8418
8398
  },
8419
8399
  FilePublishRemote: {
8420
8400
  type: "object",
@@ -8429,8 +8409,7 @@ function _schemasDomainRecord(domain) {
8429
8409
  $ref: "#/components/schemas/RecordstringFilePublishRemoteRender"
8430
8410
  }
8431
8411
  },
8432
- required: [],
8433
- additionalProperties: {}
8412
+ required: []
8434
8413
  },
8435
8414
  RecordstringFilePublishRemoteRender: {
8436
8415
  type: "object",
@@ -8466,6 +8445,25 @@ function _schemasDomainRecord(domain) {
8466
8445
  },
8467
8446
  required: []
8468
8447
  },
8448
+ Message: {
8449
+ type: "object",
8450
+ properties: {
8451
+ level: {
8452
+ type: "number"
8453
+ },
8454
+ code: {
8455
+ type: "string"
8456
+ },
8457
+ msg: {
8458
+ type: "string"
8459
+ }
8460
+ },
8461
+ required: [
8462
+ "level",
8463
+ "code",
8464
+ "msg"
8465
+ ]
8466
+ },
8469
8467
  FilePublishPublished: {
8470
8468
  type: "object",
8471
8469
  properties: {
@@ -8478,10 +8476,9 @@ function _schemasDomainRecord(domain) {
8478
8476
  },
8479
8477
  required: [
8480
8478
  "filename"
8481
- ],
8482
- additionalProperties: {}
8479
+ ]
8483
8480
  },
8484
- PublishRender: {
8481
+ PublishRenderBase: {
8485
8482
  type: "object",
8486
8483
  properties: {
8487
8484
  preset: {
@@ -8501,12 +8498,62 @@ function _schemasDomainRecord(domain) {
8501
8498
  "type"
8502
8499
  ],
8503
8500
  description: "render preset + overrides"
8501
+ },
8502
+ FacebookPublishStatsRecord: {
8503
+ type: "object",
8504
+ properties: {
8505
+ status: {
8506
+ type: "string"
8507
+ },
8508
+ substatus: {
8509
+ type: "string"
8510
+ },
8511
+ messages: {
8512
+ type: "array",
8513
+ items: {
8514
+ $ref: "#/components/schemas/Message"
8515
+ }
8516
+ },
8517
+ retrieved: {},
8518
+ defaults: {}
8519
+ },
8520
+ required: []
8521
+ },
8522
+ PublishStatsRecordBase: {
8523
+ type: "object",
8524
+ properties: {
8525
+ status: {
8526
+ type: "string"
8527
+ },
8528
+ substatus: {
8529
+ type: "string"
8530
+ },
8531
+ messages: {
8532
+ type: "array",
8533
+ items: {
8534
+ $ref: "#/components/schemas/Message"
8535
+ }
8536
+ },
8537
+ retrieved: {},
8538
+ defaults: {}
8539
+ },
8540
+ required: []
8504
8541
  }
8505
8542
  }
8506
8543
  },
8507
8544
  schemas: [
8508
8545
  {
8509
- $ref: "#/components/schemas/PublishStatsRecord"
8546
+ oneOf: [
8547
+ {
8548
+ $ref: "#/components/schemas/FilePublishStatsRecord"
8549
+ },
8550
+ {
8551
+ $ref: "#/components/schemas/FacebookPublishStatsRecord"
8552
+ },
8553
+ {
8554
+ $ref: "#/components/schemas/PublishStatsRecordBase"
8555
+ }
8556
+ ]
8510
8557
  }
8511
8558
  ]
8512
8559
  };
@@ -8516,7 +8563,7 @@ function _schemasDomainRecord(domain) {
8516
8563
  version: "3.1",
8517
8564
  components: {
8518
8565
  schemas: {
8519
- PublishDomainMethodsRecord: {
8566
+ PublishDomainMethodsRecordBase: {
8520
8567
  type: "object",
8521
8568
  properties: {},
8522
8569
  required: [],
@@ -8526,28 +8573,19 @@ function _schemasDomainRecord(domain) {
8526
8573
  rpcId: {
8527
8574
  type: "string"
8528
8575
  },
8529
- rpcData: {
8530
- $ref: "#/components/schemas/Recordstringunknown"
8531
- }
8576
+ rpcData: {}
8532
8577
  },
8533
8578
  required: [
8534
8579
  "rpcId",
8535
8580
  "rpcData"
8536
8581
  ]
8537
8582
  }
8538
- },
8539
- Recordstringunknown: {
8540
- type: "object",
8541
- properties: {},
8542
- required: [],
8543
- description: "Construct a type with a set of properties K of type T",
8544
- additionalProperties: {}
8545
8583
  }
8546
8584
  }
8547
8585
  },
8548
8586
  schemas: [
8549
8587
  {
8550
- $ref: "#/components/schemas/PublishDomainMethodsRecord"
8588
+ $ref: "#/components/schemas/PublishDomainMethodsRecordBase"
8551
8589
  }
8552
8590
  ]
8553
8591
  };
@@ -8557,7 +8595,7 @@ function _schemasDomainRecord(domain) {
8557
8595
  version: "3.1",
8558
8596
  components: {
8559
8597
  schemas: {
8560
- PublishDomainAcceptsProvidedRecord: {
8598
+ PublishDomainAcceptsProvidedRecordBase: {
8561
8599
  type: "object",
8562
8600
  properties: {
8563
8601
  value: {}
@@ -8568,7 +8606,7 @@ function _schemasDomainRecord(domain) {
8568
8606
  },
8569
8607
  schemas: [
8570
8608
  {
8571
- $ref: "#/components/schemas/PublishDomainAcceptsProvidedRecord"
8609
+ $ref: "#/components/schemas/PublishDomainAcceptsProvidedRecordBase"
8572
8610
  }
8573
8611
  ]
8574
8612
  };
@@ -11899,6 +11937,9 @@ function _schemasDomainRecord(domain) {
11899
11937
  },
11900
11938
  multiplexWebSockets: {
11901
11939
  type: "boolean"
11940
+ },
11941
+ systemHealth: {
11942
+ type: "boolean"
11902
11943
  }
11903
11944
  },
11904
11945
  required: []