@theholocron/cli 5.0.0-alpha.196 → 5.0.0-alpha.197

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.
@@ -752,6 +752,10 @@ interface EnsureWebhookResult {
752
752
  * the application that created the webhook, and only on creation).
753
753
  */
754
754
  url?: string;
755
+ /** For a webhook that already existed, or was just made: the settings that were set (`"avatar"`). */
756
+ updated?: string[];
757
+ /** Set when the webhook is fine but setting its avatar failed; the webhook and its `url` are still good. */
758
+ avatarError?: string;
755
759
  }
756
760
  /**
757
761
  * Who may see a channel and post in it. Roles are named as in the layout's `roles`.
@@ -778,6 +782,7 @@ interface NotificationsChannelLayout {
778
782
  webhook?: boolean | {
779
783
  name?: string;
780
784
  secret?: string;
785
+ avatar?: string;
781
786
  };
782
787
  }
783
788
  /**
@@ -849,6 +854,12 @@ interface NotificationsOnboardingLayout {
849
854
  }
850
855
  /** A declared server layout, applied idempotently by `holocron notifications setup`. */
851
856
  interface NotificationsLayout {
857
+ /**
858
+ * The picture every webhook gets unless its own `webhook.avatar` says otherwise: a path to a PNG,
859
+ * JPEG or GIF (from where the CLI runs) or an `https://` URL. It is set only on a webhook that has
860
+ * no picture yet -- a provider cannot say whether the one it holds is the same image.
861
+ */
862
+ webhookAvatar?: string;
852
863
  /** What a new member sees on joining, applied after the channels exist. */
853
864
  welcome?: NotificationsWelcomeLayout;
854
865
  /** The questions a new member answers, applied after the channels and roles exist. */
@@ -912,6 +923,8 @@ interface ServerInspection {
912
923
  topic?: string;
913
924
  /** Names of the webhooks on the channel. Only filled in for channels the layout gives a webhook. */
914
925
  webhooks: string[];
926
+ /** Which of those webhooks have a picture of their own. */
927
+ webhookAvatars?: string[];
915
928
  /** Set when listing this channel's webhooks failed; `webhooks` is then empty and means nothing. */
916
929
  webhooksError?: string;
917
930
  /** Who can see and post; `"custom"` as for `categoryAccess`. */
@@ -959,6 +972,8 @@ interface Notifications extends ProviderIdentity {
959
972
  channel: string;
960
973
  name: string;
961
974
  category?: string;
975
+ /** An image as a `data:` URI, set when the webhook has none. */
976
+ avatar?: string;
962
977
  }): Promise<EnsureWebhookResult>;
963
978
  ensureRole?(input: {
964
979
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.196",
3
+ "version": "5.0.0-alpha.197",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -63,8 +63,8 @@
63
63
  "pino-pretty": "^13.1.3",
64
64
  "posthog-node": "^5.51.6",
65
65
  "yargs": "^18.1.0",
66
- "@theholocron/astromech": "5.0.0-alpha.196",
67
- "@theholocron/datapad": "5.0.0-alpha.196"
66
+ "@theholocron/astromech": "5.0.0-alpha.197",
67
+ "@theholocron/datapad": "5.0.0-alpha.197"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@theholocron/eslint-config": "^8.8.2",