@ankhorage/projects 0.7.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +19 -12
  2. package/dist/capabilities/index.d.ts +330 -0
  3. package/dist/capabilities/index.js +194 -0
  4. package/dist/capabilities/socialManagerMediaAnalytics.d.ts +92 -0
  5. package/dist/capabilities/socialManagerMediaAnalytics.js +75 -0
  6. package/dist/features/projects/composition/composeGeneratedRuntimeMaterialization.d.ts +1 -0
  7. package/dist/features/projects/composition/composeGeneratedRuntimeMaterialization.js +13 -5
  8. package/dist/features/projects/composition/createExpoProjectMaterializer.js +27 -23
  9. package/dist/features/projects/composition/createRootNavigatorGenerationOptions.d.ts +9 -0
  10. package/dist/features/projects/composition/createRootNavigatorGenerationOptions.js +10 -0
  11. package/dist/features/projects/composition/createSocialManagerServerFiles.d.ts +6 -0
  12. package/dist/features/projects/composition/createSocialManagerServerFiles.js +16 -0
  13. package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemRepositories.d.ts +16 -0
  14. package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemRepositories.js +201 -0
  15. package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemStoreAsync.d.ts +25 -0
  16. package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemStoreAsync.js +72 -0
  17. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerDraftStoreAsync.d.ts +7 -0
  18. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerDraftStoreAsync.js +160 -0
  19. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerFlowSecurityAsync.d.ts +19 -0
  20. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerFlowSecurityAsync.js +176 -0
  21. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaPreflight.d.ts +4 -0
  22. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaPreflight.js +37 -0
  23. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaStoreAsync.d.ts +7 -0
  24. package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaStoreAsync.js +242 -0
  25. package/dist/features/trusted-social-manager-host/adapters/createSocialOperationStoresAsync.d.ts +13 -0
  26. package/dist/features/trusted-social-manager-host/adapters/createSocialOperationStoresAsync.js +244 -0
  27. package/dist/features/trusted-social-manager-host/adapters/projectSocialManagerConnection.d.ts +53 -0
  28. package/dist/features/trusted-social-manager-host/adapters/projectSocialManagerConnection.js +42 -0
  29. package/dist/features/trusted-social-manager-host/application/createSocialManagerPublicationRuntime.d.ts +10 -0
  30. package/dist/features/trusted-social-manager-host/application/createSocialManagerPublicationRuntime.js +240 -0
  31. package/dist/features/trusted-social-manager-host/application/resolveSocialManagerPublication.d.ts +22 -0
  32. package/dist/features/trusted-social-manager-host/application/resolveSocialManagerPublication.js +97 -0
  33. package/dist/features/trusted-social-manager-host/composition/createSocialManagerCapabilityOperations.d.ts +22 -0
  34. package/dist/features/trusted-social-manager-host/composition/createSocialManagerCapabilityOperations.js +224 -0
  35. package/dist/features/trusted-social-manager-host/composition/createSocialManagerConnectionOperations.d.ts +20 -0
  36. package/dist/features/trusted-social-manager-host/composition/createSocialManagerConnectionOperations.js +152 -0
  37. package/dist/features/trusted-social-manager-host/composition/createSocialManagerLocalProviderFixtures.d.ts +22 -0
  38. package/dist/features/trusted-social-manager-host/composition/createSocialManagerLocalProviderFixtures.js +271 -0
  39. package/dist/features/trusted-social-manager-host/composition/createSocialManagerMediaOperations.d.ts +14 -0
  40. package/dist/features/trusted-social-manager-host/composition/createSocialManagerMediaOperations.js +72 -0
  41. package/dist/features/trusted-social-manager-host/composition/createSocialManagerProvider.d.ts +20 -0
  42. package/dist/features/trusted-social-manager-host/composition/createSocialManagerProvider.js +20 -0
  43. package/dist/features/trusted-social-manager-host/composition/createSocialManagerPublicationOperations.d.ts +15 -0
  44. package/dist/features/trusted-social-manager-host/composition/createSocialManagerPublicationOperations.js +185 -0
  45. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerFileSystemPersistenceAsync.d.ts +14 -0
  46. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerFileSystemPersistenceAsync.js +17 -0
  47. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerHost.d.ts +51 -0
  48. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerHost.js +188 -0
  49. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalHostAsync.d.ts +18 -0
  50. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalHostAsync.js +177 -0
  51. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalServerAsync.d.ts +26 -0
  52. package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalServerAsync.js +66 -0
  53. package/dist/features/trusted-social-manager-host/domain/publicationConfig.d.ts +18 -0
  54. package/dist/features/trusted-social-manager-host/domain/publicationConfig.js +77 -0
  55. package/dist/features/trusted-social-manager-host/domain/readSocialManagerConnectionRequest.d.ts +54 -0
  56. package/dist/features/trusted-social-manager-host/domain/readSocialManagerConnectionRequest.js +77 -0
  57. package/dist/features/trusted-social-manager-host/domain/readSocialManagerDraftContent.d.ts +3 -0
  58. package/dist/features/trusted-social-manager-host/domain/readSocialManagerDraftContent.js +47 -0
  59. package/dist/features/trusted-social-manager-host/domain/socialManagerConnectionIdentity.d.ts +17 -0
  60. package/dist/features/trusted-social-manager-host/domain/socialManagerConnectionIdentity.js +17 -0
  61. package/dist/index.d.ts +16 -0
  62. package/dist/index.js +14 -0
  63. package/dist/types/socialManager.d.ts +77 -0
  64. package/dist/types/socialManager.js +1 -0
  65. package/dist/types/socialManagerPublication.d.ts +27 -0
  66. package/dist/types/socialManagerPublication.js +1 -0
  67. package/package.json +507 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/projects",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Standalone project identity and repository actions.",
5
5
  "keywords": [
6
6
  "ankhorage",
@@ -54,23 +54,26 @@
54
54
  "version-packages": "ankhorage-changeset version"
55
55
  },
56
56
  "devDependencies": {
57
- "@ankhorage/devtools": "^2.12.8",
58
- "@ankhorage/paradox": "^0.3.7",
57
+ "@ankhorage/devtools": "^2.12.18",
58
+ "@ankhorage/paradox": "^0.6.2",
59
59
  "@types/bun": "^1.4.5",
60
60
  "@types/node": "^26.6.11",
61
61
  "typescript": "~6.0.3"
62
62
  },
63
63
  "dependencies": {
64
- "@ankhorage/api": "^0.5.2",
64
+ "@ankhorage/api": "^0.7.0",
65
65
  "@ankhorage/api-fastify": "^0.4.0",
66
- "@ankhorage/contracts": "^26.19.0",
66
+ "@ankhorage/connection": "^0.3.0",
67
+ "@ankhorage/contracts": "^27.0.1",
67
68
  "@ankhorage/data-sources": "^2.4.0",
68
- "@ankhorage/expo-runtime": "^7.6.0",
69
- "@ankhorage/navigator": "^3.7.0",
69
+ "@ankhorage/expo-runtime": "^7.8.3",
70
+ "@ankhorage/flow": "^0.12.0",
71
+ "@ankhorage/navigator": "^3.8.1",
70
72
  "@ankhorage/permissions": "^0.2.64",
71
- "@ankhorage/runtime": "^5.6.4",
73
+ "@ankhorage/runtime": "^5.7.9",
72
74
  "@ankhorage/secrets": "^0.3.2",
73
- "@ankhorage/templates": "^12.7.7",
75
+ "@ankhorage/social": "^0.7.0",
76
+ "@ankhorage/templates": "^12.7.33",
74
77
  "@ankhorage/utility": "^1.11.0"
75
78
  },
76
79
  "ankh": {
@@ -240,6 +243,501 @@
240
243
  },
241
244
  "label": "Read a Zefix company by UID",
242
245
  "description": "Read curated Zefix company data through a trusted project host."
246
+ },
247
+ {
248
+ "id": "projects.social.drafts.create",
249
+ "owner": "@ankhorage/projects",
250
+ "access": [
251
+ "write"
252
+ ],
253
+ "binding": {
254
+ "kind": "action",
255
+ "bindableAs": [
256
+ "target"
257
+ ]
258
+ },
259
+ "label": "Create social draft",
260
+ "description": "Create the first immutable social draft revision."
261
+ },
262
+ {
263
+ "id": "projects.social.drafts.list",
264
+ "owner": "@ankhorage/projects",
265
+ "access": [
266
+ "read"
267
+ ],
268
+ "binding": {
269
+ "kind": "action",
270
+ "bindableAs": [
271
+ "target"
272
+ ]
273
+ },
274
+ "label": "List social drafts",
275
+ "description": "List current drafts in an authenticated project scope."
276
+ },
277
+ {
278
+ "id": "projects.social.drafts.read",
279
+ "owner": "@ankhorage/projects",
280
+ "access": [
281
+ "read"
282
+ ],
283
+ "binding": {
284
+ "kind": "action",
285
+ "bindableAs": [
286
+ "target"
287
+ ]
288
+ },
289
+ "label": "Read social draft",
290
+ "description": "Read the current draft revision in an authenticated project scope."
291
+ },
292
+ {
293
+ "id": "projects.social.drafts.update",
294
+ "owner": "@ankhorage/projects",
295
+ "access": [
296
+ "write"
297
+ ],
298
+ "binding": {
299
+ "kind": "action",
300
+ "bindableAs": [
301
+ "target"
302
+ ]
303
+ },
304
+ "label": "Update social draft",
305
+ "description": "Append a new draft revision using an expected revision number."
306
+ },
307
+ {
308
+ "id": "projects.social.media.upload",
309
+ "owner": "@ankhorage/projects",
310
+ "access": [
311
+ "write"
312
+ ],
313
+ "binding": {
314
+ "kind": "action",
315
+ "bindableAs": [
316
+ "target"
317
+ ]
318
+ },
319
+ "label": "Upload social media",
320
+ "description": "Persist immutable caller-owned social media content."
321
+ },
322
+ {
323
+ "id": "projects.social.media.list",
324
+ "owner": "@ankhorage/projects",
325
+ "access": [
326
+ "read"
327
+ ],
328
+ "binding": {
329
+ "kind": "action",
330
+ "bindableAs": [
331
+ "target"
332
+ ]
333
+ },
334
+ "label": "List social media",
335
+ "description": "List immutable social media metadata in the authenticated caller scope."
336
+ },
337
+ {
338
+ "id": "projects.social.media.read",
339
+ "owner": "@ankhorage/projects",
340
+ "access": [
341
+ "read"
342
+ ],
343
+ "binding": {
344
+ "kind": "action",
345
+ "bindableAs": [
346
+ "target"
347
+ ]
348
+ },
349
+ "label": "Read social media",
350
+ "description": "Read one immutable social media metadata record."
351
+ },
352
+ {
353
+ "id": "projects.social.media.remove",
354
+ "owner": "@ankhorage/projects",
355
+ "access": [
356
+ "write"
357
+ ],
358
+ "binding": {
359
+ "kind": "action",
360
+ "bindableAs": [
361
+ "target"
362
+ ]
363
+ },
364
+ "label": "Remove social media",
365
+ "description": "Remove unreferenced immutable social media content."
366
+ },
367
+ {
368
+ "id": "projects.social.capabilities.read",
369
+ "owner": "@ankhorage/projects",
370
+ "access": [
371
+ "read"
372
+ ],
373
+ "binding": {
374
+ "kind": "action",
375
+ "bindableAs": [
376
+ "target"
377
+ ]
378
+ },
379
+ "label": "Read social capability",
380
+ "description": "Read the authenticated destination provider capability."
381
+ },
382
+ {
383
+ "id": "projects.social.content.validate",
384
+ "owner": "@ankhorage/projects",
385
+ "access": [
386
+ "write"
387
+ ],
388
+ "binding": {
389
+ "kind": "action",
390
+ "bindableAs": [
391
+ "target"
392
+ ]
393
+ },
394
+ "label": "Validate social content",
395
+ "description": "Validate an immutable social draft destination against provider constraints."
396
+ },
397
+ {
398
+ "id": "projects.social.preview.prepare",
399
+ "owner": "@ankhorage/projects",
400
+ "access": [
401
+ "write"
402
+ ],
403
+ "binding": {
404
+ "kind": "action",
405
+ "bindableAs": [
406
+ "target"
407
+ ]
408
+ },
409
+ "label": "Prepare social preview",
410
+ "description": "Prepare a validated redaction-safe social publication preview."
411
+ },
412
+ {
413
+ "id": "projects.social.analytics.capabilities",
414
+ "owner": "@ankhorage/projects",
415
+ "access": [
416
+ "read"
417
+ ],
418
+ "binding": {
419
+ "kind": "action",
420
+ "bindableAs": [
421
+ "target"
422
+ ]
423
+ },
424
+ "label": "Read social analytics capabilities",
425
+ "description": "Read provider-native availability for social analytics metrics."
426
+ },
427
+ {
428
+ "id": "projects.social.analytics.retrieve",
429
+ "owner": "@ankhorage/projects",
430
+ "access": [
431
+ "write"
432
+ ],
433
+ "binding": {
434
+ "kind": "action",
435
+ "bindableAs": [
436
+ "target"
437
+ ]
438
+ },
439
+ "label": "Retrieve social analytics",
440
+ "description": "Retrieve provider-native social analytics observations."
441
+ },
442
+ {
443
+ "id": "projects.social.connections.list",
444
+ "owner": "@ankhorage/projects",
445
+ "access": [
446
+ "read"
447
+ ],
448
+ "binding": {
449
+ "kind": "action",
450
+ "bindableAs": [
451
+ "target"
452
+ ]
453
+ },
454
+ "label": "List social connections",
455
+ "description": "List the authenticated caller’s redacted social account connections."
456
+ },
457
+ {
458
+ "id": "projects.social.connections.connect",
459
+ "owner": "@ankhorage/projects",
460
+ "access": [
461
+ "write"
462
+ ],
463
+ "binding": {
464
+ "kind": "action",
465
+ "bindableAs": [
466
+ "target"
467
+ ]
468
+ },
469
+ "label": "Connect social account",
470
+ "description": "Start a bound delegated authorization attempt for a social account."
471
+ },
472
+ {
473
+ "id": "projects.social.connections.complete",
474
+ "owner": "@ankhorage/projects",
475
+ "access": [
476
+ "write"
477
+ ],
478
+ "binding": {
479
+ "kind": "action",
480
+ "bindableAs": [
481
+ "target"
482
+ ]
483
+ },
484
+ "label": "Complete social connection",
485
+ "description": "Complete one authenticated caller’s delegated authorization attempt."
486
+ },
487
+ {
488
+ "id": "projects.social.connections.cancel",
489
+ "owner": "@ankhorage/projects",
490
+ "access": [
491
+ "write"
492
+ ],
493
+ "binding": {
494
+ "kind": "action",
495
+ "bindableAs": [
496
+ "target"
497
+ ]
498
+ },
499
+ "label": "Cancel social connection",
500
+ "description": "Cancel one pending delegated authorization attempt."
501
+ },
502
+ {
503
+ "id": "projects.social.connections.reconnect",
504
+ "owner": "@ankhorage/projects",
505
+ "access": [
506
+ "write"
507
+ ],
508
+ "binding": {
509
+ "kind": "action",
510
+ "bindableAs": [
511
+ "target"
512
+ ]
513
+ },
514
+ "label": "Reconnect social account",
515
+ "description": "Start a fresh delegated authorization attempt for an existing account."
516
+ },
517
+ {
518
+ "id": "projects.social.connections.refresh",
519
+ "owner": "@ankhorage/projects",
520
+ "access": [
521
+ "write"
522
+ ],
523
+ "binding": {
524
+ "kind": "action",
525
+ "bindableAs": [
526
+ "target"
527
+ ]
528
+ },
529
+ "label": "Refresh social connection",
530
+ "description": "Refresh a caller-owned social connection through its trusted adapter."
531
+ },
532
+ {
533
+ "id": "projects.social.connections.health",
534
+ "owner": "@ankhorage/projects",
535
+ "access": [
536
+ "read"
537
+ ],
538
+ "binding": {
539
+ "kind": "action",
540
+ "bindableAs": [
541
+ "target"
542
+ ]
543
+ },
544
+ "label": "Read social connection health",
545
+ "description": "Read the current credential-free health of a caller-owned social connection."
546
+ },
547
+ {
548
+ "id": "projects.social.connections.destinations.list",
549
+ "owner": "@ankhorage/projects",
550
+ "access": [
551
+ "read"
552
+ ],
553
+ "binding": {
554
+ "kind": "action",
555
+ "bindableAs": [
556
+ "target"
557
+ ]
558
+ },
559
+ "label": "List social destinations",
560
+ "description": "Discover authorized social destinations for a caller-owned account."
561
+ },
562
+ {
563
+ "id": "projects.social.connections.disconnect",
564
+ "owner": "@ankhorage/projects",
565
+ "access": [
566
+ "write"
567
+ ],
568
+ "binding": {
569
+ "kind": "action",
570
+ "bindableAs": [
571
+ "target"
572
+ ]
573
+ },
574
+ "label": "Disconnect social account",
575
+ "description": "Revoke one exact caller-owned social authorization and remove its credential."
576
+ },
577
+ {
578
+ "id": "projects.social.connections.revocation.reconcile",
579
+ "owner": "@ankhorage/projects",
580
+ "access": [
581
+ "write"
582
+ ],
583
+ "binding": {
584
+ "kind": "action",
585
+ "bindableAs": [
586
+ "target"
587
+ ]
588
+ },
589
+ "label": "Reconcile social disconnection",
590
+ "description": "Reconcile one durable caller-owned social authorization revocation."
591
+ },
592
+ {
593
+ "id": "projects.social.publications.prepare",
594
+ "owner": "@ankhorage/projects",
595
+ "access": [
596
+ "write"
597
+ ],
598
+ "binding": {
599
+ "kind": "action",
600
+ "bindableAs": [
601
+ "target"
602
+ ]
603
+ },
604
+ "label": "Prepare social publication",
605
+ "description": "Prepare an exact Flow-backed social publication and request approval."
606
+ },
607
+ {
608
+ "id": "projects.social.publications.publish",
609
+ "owner": "@ankhorage/projects",
610
+ "access": [
611
+ "write"
612
+ ],
613
+ "binding": {
614
+ "kind": "action",
615
+ "bindableAs": [
616
+ "target"
617
+ ]
618
+ },
619
+ "label": "Publish social content",
620
+ "description": "Request immediate approved publication of one immutable social draft destination."
621
+ },
622
+ {
623
+ "id": "projects.social.publications.schedule",
624
+ "owner": "@ankhorage/projects",
625
+ "access": [
626
+ "write"
627
+ ],
628
+ "binding": {
629
+ "kind": "action",
630
+ "bindableAs": [
631
+ "target"
632
+ ]
633
+ },
634
+ "label": "Schedule social publication",
635
+ "description": "Schedule one approved social publication through Flow."
636
+ },
637
+ {
638
+ "id": "projects.social.publications.cancel",
639
+ "owner": "@ankhorage/projects",
640
+ "access": [
641
+ "write"
642
+ ],
643
+ "binding": {
644
+ "kind": "action",
645
+ "bindableAs": [
646
+ "target"
647
+ ]
648
+ },
649
+ "label": "Cancel social publication",
650
+ "description": "Cancel one caller-owned pending social publication."
651
+ },
652
+ {
653
+ "id": "projects.social.publications.execution.status",
654
+ "owner": "@ankhorage/projects",
655
+ "access": [
656
+ "read"
657
+ ],
658
+ "binding": {
659
+ "kind": "action",
660
+ "bindableAs": [
661
+ "target"
662
+ ]
663
+ },
664
+ "label": "Read social publication status",
665
+ "description": "Read one caller-owned social publication execution status."
666
+ },
667
+ {
668
+ "id": "projects.social.publications.approval.status",
669
+ "owner": "@ankhorage/projects",
670
+ "access": [
671
+ "read"
672
+ ],
673
+ "binding": {
674
+ "kind": "action",
675
+ "bindableAs": [
676
+ "target"
677
+ ]
678
+ },
679
+ "label": "Read social publication approval",
680
+ "description": "Read approval availability for one caller-owned publication."
681
+ },
682
+ {
683
+ "id": "projects.social.publications.approval.resolve",
684
+ "owner": "@ankhorage/projects",
685
+ "access": [
686
+ "write"
687
+ ],
688
+ "binding": {
689
+ "kind": "action",
690
+ "bindableAs": [
691
+ "target"
692
+ ]
693
+ },
694
+ "label": "Resolve social publication approval",
695
+ "description": "Resolve one caller-owned social publication approval."
696
+ },
697
+ {
698
+ "id": "projects.social.publications.scheduled.list",
699
+ "owner": "@ankhorage/projects",
700
+ "access": [
701
+ "read"
702
+ ],
703
+ "binding": {
704
+ "kind": "action",
705
+ "bindableAs": [
706
+ "target"
707
+ ]
708
+ },
709
+ "label": "List scheduled social publications",
710
+ "description": "List active caller-owned social publication executions."
711
+ },
712
+ {
713
+ "id": "projects.social.publications.history.list",
714
+ "owner": "@ankhorage/projects",
715
+ "access": [
716
+ "read"
717
+ ],
718
+ "binding": {
719
+ "kind": "action",
720
+ "bindableAs": [
721
+ "target"
722
+ ]
723
+ },
724
+ "label": "List social publication history",
725
+ "description": "List completed caller-owned social publication executions."
726
+ },
727
+ {
728
+ "id": "projects.social.publications.receipts.list",
729
+ "owner": "@ankhorage/projects",
730
+ "access": [
731
+ "read"
732
+ ],
733
+ "binding": {
734
+ "kind": "action",
735
+ "bindableAs": [
736
+ "target"
737
+ ]
738
+ },
739
+ "label": "List social publication receipts",
740
+ "description": "List redacted receipts from caller-owned social publications."
243
741
  }
244
742
  ]
245
743
  }