@vess-id/ai-identity 0.7.0 → 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.
package/dist/index.mjs CHANGED
@@ -4763,8 +4763,8 @@ var ACTION_REGISTRY = {
4763
4763
  action: "gmail.message.send",
4764
4764
  resource_type: "gmail:thread",
4765
4765
  required_relations: ["editor", "act_as"],
4766
- required_scopes: ["https://www.googleapis.com/auth/gmail.send"],
4767
- capability: "gmail.send",
4766
+ required_scopes: ["https://www.googleapis.com/auth/gmail.compose"],
4767
+ capability: "gmail.compose",
4768
4768
  input_schema: {
4769
4769
  type: "object",
4770
4770
  properties: {
@@ -4789,6 +4789,36 @@ var ACTION_REGISTRY = {
4789
4789
  },
4790
4790
  version: "1.0.0"
4791
4791
  },
4792
+ {
4793
+ action: "gmail.draft.create",
4794
+ resource_type: "gmail:thread",
4795
+ required_relations: ["editor", "act_as"],
4796
+ required_scopes: ["https://www.googleapis.com/auth/gmail.compose"],
4797
+ capability: "gmail.compose",
4798
+ input_schema: {
4799
+ type: "object",
4800
+ properties: {
4801
+ to: { type: "string", minLength: 1 },
4802
+ subject: { type: "string", minLength: 1 },
4803
+ body: { type: "string", minLength: 1 },
4804
+ cc: { type: "string" },
4805
+ bcc: { type: "string" }
4806
+ },
4807
+ required: ["to", "subject", "body"],
4808
+ additionalProperties: false
4809
+ },
4810
+ constraints: { rate_bucket: "gmail.write" },
4811
+ effects: ["Create:Draft"],
4812
+ risk: "high",
4813
+ target_bindings: {
4814
+ resource_id: { source: "param", param: "to", multi: true, separator: "," },
4815
+ secondary: [
4816
+ { name: "cc", source: { source: "param", param: "cc" }, type: "recipient" },
4817
+ { name: "bcc", source: { source: "param", param: "bcc" }, type: "recipient" }
4818
+ ]
4819
+ },
4820
+ version: "1.0.0"
4821
+ },
4792
4822
  {
4793
4823
  action: "gmail.label.read",
4794
4824
  resource_type: "gmail:label",
@@ -5382,9 +5412,9 @@ var ACTION_REGISTRY = {
5382
5412
  version: "1.0.0"
5383
5413
  },
5384
5414
  {
5385
- capability: "gmail.send",
5386
- description: "Send emails via Gmail",
5387
- includes: ["gmail.message.send"],
5415
+ capability: "gmail.compose",
5416
+ description: "Send emails and create drafts via Gmail",
5417
+ includes: ["gmail.message.send", "gmail.draft.create"],
5388
5418
  version: "1.0.0"
5389
5419
  },
5390
5420
  {