@vm0/cli 9.209.0 → 9.209.1

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 (57) hide show
  1. package/{chunk-QXLY7TX2.js → chunk-E4QFFTUC.js} +9 -4
  2. package/{chunk-QXLY7TX2.js.map → chunk-E4QFFTUC.js.map} +1 -1
  3. package/{chunk-NUMM3WMG.js → chunk-S3DAXIKY.js} +1 -1
  4. package/{chunk-NUMM3WMG.js.map → chunk-S3DAXIKY.js.map} +1 -1
  5. package/{clerk.generated-ZX6FS3MY.js → clerk.generated-VYPZORXB.js} +1 -1
  6. package/clerk.generated-VYPZORXB.js.map +1 -0
  7. package/{cloudflare.generated-6N4KWRE3.js → cloudflare.generated-YPGW4ALF.js} +1 -1
  8. package/cloudflare.generated-YPGW4ALF.js.map +1 -0
  9. package/{firewall-placeholder-expansion-FRPU64H3.js → firewall-placeholder-expansion-NK7UHGTN.js} +2 -2
  10. package/{gmail.generated-PL3HVAVP.js → gmail.generated-CXXGCZPP.js} +1 -1
  11. package/gmail.generated-CXXGCZPP.js.map +1 -0
  12. package/{google-analytics.generated-7EAP74EC.js → google-analytics.generated-LR5RC6K5.js} +1 -1
  13. package/google-analytics.generated-LR5RC6K5.js.map +1 -0
  14. package/{google-calendar.generated-66JO7MZH.js → google-calendar.generated-D4GJ7VO5.js} +1 -1
  15. package/google-calendar.generated-D4GJ7VO5.js.map +1 -0
  16. package/{google-cloud.generated-H4E5WNYB.js → google-cloud.generated-753VHV7L.js} +1 -1
  17. package/google-cloud.generated-753VHV7L.js.map +1 -0
  18. package/{google-docs.generated-NZYWOUOC.js → google-docs.generated-XH5A5CNI.js} +1 -1
  19. package/google-docs.generated-XH5A5CNI.js.map +1 -0
  20. package/{google-drive.generated-JTJW3HYA.js → google-drive.generated-EFB5FL7H.js} +1 -1
  21. package/google-drive.generated-EFB5FL7H.js.map +1 -0
  22. package/{google-meet.generated-SQAK6E4P.js → google-meet.generated-K2FLJEET.js} +1 -1
  23. package/google-meet.generated-K2FLJEET.js.map +1 -0
  24. package/{google-search-console.generated-PRI3O6UG.js → google-search-console.generated-3ZTIE5VX.js} +1 -1
  25. package/google-search-console.generated-3ZTIE5VX.js.map +1 -0
  26. package/{google-sheets.generated-NZNUFLZM.js → google-sheets.generated-2NO2YMYK.js} +1 -1
  27. package/google-sheets.generated-2NO2YMYK.js.map +1 -0
  28. package/index.js +10 -10
  29. package/{maskdb.generated-T2JIVNT4.js → maskdb.generated-VNT5ANFK.js} +1 -1
  30. package/maskdb.generated-VNT5ANFK.js.map +1 -0
  31. package/package.json +1 -1
  32. package/{slack.generated-V76OAVKH.js → slack.generated-QJKOJ2OP.js} +1 -1
  33. package/slack.generated-QJKOJ2OP.js.map +1 -0
  34. package/{stripe.generated-SC3QH5ZD.js → stripe.generated-2RPKIN5I.js} +1 -1
  35. package/stripe.generated-2RPKIN5I.js.map +1 -0
  36. package/{vercel.generated-NX2R7A4K.js → vercel.generated-FZ6RD7RJ.js} +1 -1
  37. package/vercel.generated-FZ6RD7RJ.js.map +1 -0
  38. package/{youtube.generated-YWLXAYNL.js → youtube.generated-2NDVPMV2.js} +1 -1
  39. package/youtube.generated-2NDVPMV2.js.map +1 -0
  40. package/zero.js +20 -20
  41. package/clerk.generated-ZX6FS3MY.js.map +0 -1
  42. package/cloudflare.generated-6N4KWRE3.js.map +0 -1
  43. package/gmail.generated-PL3HVAVP.js.map +0 -1
  44. package/google-analytics.generated-7EAP74EC.js.map +0 -1
  45. package/google-calendar.generated-66JO7MZH.js.map +0 -1
  46. package/google-cloud.generated-H4E5WNYB.js.map +0 -1
  47. package/google-docs.generated-NZYWOUOC.js.map +0 -1
  48. package/google-drive.generated-JTJW3HYA.js.map +0 -1
  49. package/google-meet.generated-SQAK6E4P.js.map +0 -1
  50. package/google-search-console.generated-PRI3O6UG.js.map +0 -1
  51. package/google-sheets.generated-NZNUFLZM.js.map +0 -1
  52. package/maskdb.generated-T2JIVNT4.js.map +0 -1
  53. package/slack.generated-V76OAVKH.js.map +0 -1
  54. package/stripe.generated-SC3QH5ZD.js.map +0 -1
  55. package/vercel.generated-NX2R7A4K.js.map +0 -1
  56. package/youtube.generated-YWLXAYNL.js.map +0 -1
  57. /package/{firewall-placeholder-expansion-FRPU64H3.js.map → firewall-placeholder-expansion-NK7UHGTN.js.map} +0 -0
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  getConnectorEnvBindingEntries
6
- } from "./chunk-NUMM3WMG.js";
6
+ } from "./chunk-S3DAXIKY.js";
7
7
  import {
8
8
  init_esm_shims
9
9
  } from "./chunk-QI47S6VO.js";
@@ -47,4 +47,4 @@ function expandFirewallPlaceholders(firewall, connectorType) {
47
47
  export {
48
48
  expandFirewallPlaceholders
49
49
  };
50
- //# sourceMappingURL=firewall-placeholder-expansion-FRPU64H3.js.map
50
+ //# sourceMappingURL=firewall-placeholder-expansion-NK7UHGTN.js.map
@@ -339,4 +339,4 @@ export {
339
339
  gmailDefaultUnknownPolicy,
340
340
  gmailFirewall
341
341
  };
342
- //# sourceMappingURL=gmail.generated-PL3HVAVP.js.map
342
+ //# sourceMappingURL=gmail.generated-CXXGCZPP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/connectors/src/firewalls/gmail.generated.ts"],"sourcesContent":["// Auto-generated from Google's Gmail Discovery API and vm0's Gmail permission manifest.\n// Source: https://gmail.googleapis.com/$discovery/rest?version=v1\n// Regenerate: cd turbo && pnpm -F @vm0/firewalls-generator generate:gmail\n//\n// DO NOT EDIT THIS FILE MANUALLY.\n\nimport type { FirewallConfig, FirewallPolicyValue, PermissionNamesOf } from \"../firewall-types\";\n\nexport const gmailFirewall = {\n name: \"gmail\",\n description: \"Gmail API\",\n placeholders: {\n GMAIL_TOKEN: \"ya29.A0CoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSa\",\n },\n apis: [\n {\n base: \"https://gmail.googleapis.com/gmail\",\n auth: {\n headers: {\n Authorization: \"Bearer ${{ secrets.GMAIL_TOKEN }}\",\n },\n },\n permissions: [\n {\n name: \"drafts.read\",\n description: \"Read Gmail drafts.\",\n rules: [\n \"GET /v1/users/{userId}/drafts\",\n \"GET /v1/users/{userId}/drafts/{id}\",\n ],\n },\n {\n name: \"drafts.send\",\n description: \"Send Gmail drafts.\",\n rules: [\n \"POST /v1/users/{userId}/drafts/send\",\n ],\n },\n {\n name: \"drafts.write\",\n description: \"Create, update, and delete Gmail drafts.\",\n rules: [\n \"POST /v1/users/{userId}/drafts\",\n \"PUT /v1/users/{userId}/drafts/{id}\",\n \"DELETE /v1/users/{userId}/drafts/{id}\",\n ],\n },\n {\n name: \"history.read\",\n description: \"Read Gmail mailbox history changes.\",\n rules: [\n \"GET /v1/users/{userId}/history\",\n ],\n },\n {\n name: \"labels.read\",\n description: \"Read Gmail labels.\",\n rules: [\n \"GET /v1/users/{userId}/labels\",\n \"GET /v1/users/{userId}/labels/{id}\",\n ],\n },\n {\n name: \"labels.write\",\n description: \"Create, update, and delete Gmail labels.\",\n rules: [\n \"POST /v1/users/{userId}/labels\",\n \"PUT /v1/users/{userId}/labels/{id}\",\n \"PATCH /v1/users/{userId}/labels/{id}\",\n \"DELETE /v1/users/{userId}/labels/{id}\",\n ],\n },\n {\n name: \"messages.delete\",\n description: \"Permanently delete Gmail messages.\",\n rules: [\n \"POST /v1/users/{userId}/messages/batchDelete\",\n \"DELETE /v1/users/{userId}/messages/{id}\",\n ],\n },\n {\n name: \"messages.read\",\n description: \"Read Gmail messages, message metadata, and attachments.\",\n rules: [\n \"GET /v1/users/{userId}/messages\",\n \"GET /v1/users/{userId}/messages/{id}\",\n \"GET /v1/users/{userId}/messages/{messageId}/attachments/{id}\",\n ],\n },\n {\n name: \"messages.send\",\n description: \"Send Gmail messages directly.\",\n rules: [\n \"POST /v1/users/{userId}/messages/send\",\n ],\n },\n {\n name: \"messages.write\",\n description: \"Import, insert, label, trash, and untrash Gmail messages.\",\n rules: [\n \"POST /v1/users/{userId}/messages\",\n \"POST /v1/users/{userId}/messages/batchModify\",\n \"POST /v1/users/{userId}/messages/import\",\n \"POST /v1/users/{userId}/messages/{id}/modify\",\n \"POST /v1/users/{userId}/messages/{id}/trash\",\n \"POST /v1/users/{userId}/messages/{id}/untrash\",\n ],\n },\n {\n name: \"notifications.write\",\n description: \"Create and stop Gmail mailbox notification watches.\",\n rules: [\n \"POST /v1/users/{userId}/stop\",\n \"POST /v1/users/{userId}/watch\",\n ],\n },\n {\n name: \"profile.read\",\n description: \"Read the Gmail profile and mailbox email address.\",\n rules: [\n \"GET /v1/users/{userId}/profile\",\n ],\n },\n {\n name: \"settings.read\",\n description: \"Read Gmail mailbox settings.\",\n rules: [\n \"GET /v1/users/{userId}/settings/autoForwarding\",\n \"GET /v1/users/{userId}/settings/cse/identities\",\n \"GET /v1/users/{userId}/settings/cse/identities/{cseEmailAddress}\",\n \"GET /v1/users/{userId}/settings/cse/keypairs\",\n \"GET /v1/users/{userId}/settings/cse/keypairs/{keyPairId}\",\n \"GET /v1/users/{userId}/settings/delegates\",\n \"GET /v1/users/{userId}/settings/delegates/{delegateEmail}\",\n \"GET /v1/users/{userId}/settings/filters\",\n \"GET /v1/users/{userId}/settings/filters/{id}\",\n \"GET /v1/users/{userId}/settings/forwardingAddresses\",\n \"GET /v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}\",\n \"GET /v1/users/{userId}/settings/imap\",\n \"GET /v1/users/{userId}/settings/language\",\n \"GET /v1/users/{userId}/settings/pop\",\n \"GET /v1/users/{userId}/settings/sendAs\",\n \"GET /v1/users/{userId}/settings/sendAs/{sendAsEmail}\",\n \"GET /v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo\",\n \"GET /v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}\",\n \"GET /v1/users/{userId}/settings/vacation\",\n ],\n },\n {\n name: \"settings.sharing\",\n description: \"Manage Gmail forwarding, delegates, sending identities, and sharing-sensitive settings.\",\n rules: [\n \"PUT /v1/users/{userId}/settings/autoForwarding\",\n \"POST /v1/users/{userId}/settings/delegates\",\n \"DELETE /v1/users/{userId}/settings/delegates/{delegateEmail}\",\n \"POST /v1/users/{userId}/settings/forwardingAddresses\",\n \"DELETE /v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}\",\n \"POST /v1/users/{userId}/settings/sendAs\",\n \"DELETE /v1/users/{userId}/settings/sendAs/{sendAsEmail}\",\n \"POST /v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify\",\n ],\n },\n {\n name: \"settings.write\",\n description: \"Create, update, and delete ordinary Gmail settings.\",\n rules: [\n \"POST /v1/users/{userId}/settings/cse/identities\",\n \"DELETE /v1/users/{userId}/settings/cse/identities/{cseEmailAddress}\",\n \"PATCH /v1/users/{userId}/settings/cse/identities/{emailAddress}\",\n \"POST /v1/users/{userId}/settings/cse/keypairs\",\n \"POST /v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable\",\n \"POST /v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable\",\n \"POST /v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate\",\n \"POST /v1/users/{userId}/settings/filters\",\n \"DELETE /v1/users/{userId}/settings/filters/{id}\",\n \"PUT /v1/users/{userId}/settings/imap\",\n \"PUT /v1/users/{userId}/settings/language\",\n \"PUT /v1/users/{userId}/settings/pop\",\n \"PUT /v1/users/{userId}/settings/sendAs/{sendAsEmail}\",\n \"PATCH /v1/users/{userId}/settings/sendAs/{sendAsEmail}\",\n \"POST /v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo\",\n \"DELETE /v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}\",\n \"POST /v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault\",\n \"PUT /v1/users/{userId}/settings/vacation\",\n ],\n },\n {\n name: \"threads.delete\",\n description: \"Permanently delete Gmail threads.\",\n rules: [\n \"DELETE /v1/users/{userId}/threads/{id}\",\n ],\n },\n {\n name: \"threads.read\",\n description: \"Read Gmail threads.\",\n rules: [\n \"GET /v1/users/{userId}/threads\",\n \"GET /v1/users/{userId}/threads/{id}\",\n ],\n },\n {\n name: \"threads.write\",\n description: \"Modify, trash, and untrash Gmail threads.\",\n rules: [\n \"POST /v1/users/{userId}/threads/{id}/modify\",\n \"POST /v1/users/{userId}/threads/{id}/trash\",\n \"POST /v1/users/{userId}/threads/{id}/untrash\",\n ],\n },\n ],\n },\n {\n base: \"https://gmail.googleapis.com/upload/gmail\",\n auth: {\n headers: {\n Authorization: \"Bearer ${{ secrets.GMAIL_TOKEN }}\",\n },\n },\n permissions: [\n {\n name: \"drafts.send\",\n description: \"Send Gmail drafts.\",\n rules: [\n \"POST /v1/users/{userId}/drafts/send\",\n ],\n },\n {\n name: \"drafts.write\",\n description: \"Create, update, and delete Gmail drafts.\",\n rules: [\n \"POST /v1/users/{userId}/drafts\",\n \"PUT /v1/users/{userId}/drafts/{id}\",\n ],\n },\n {\n name: \"messages.send\",\n description: \"Send Gmail messages directly.\",\n rules: [\n \"POST /v1/users/{userId}/messages/send\",\n ],\n },\n {\n name: \"messages.write\",\n description: \"Import, insert, label, trash, and untrash Gmail messages.\",\n rules: [\n \"POST /v1/users/{userId}/messages\",\n \"POST /v1/users/{userId}/messages/import\",\n ],\n },\n ],\n },\n {\n base: \"https://gmail.googleapis.com/resumable/upload/gmail\",\n auth: {\n headers: {\n Authorization: \"Bearer ${{ secrets.GMAIL_TOKEN }}\",\n },\n },\n permissions: [\n {\n name: \"drafts.send\",\n description: \"Send Gmail drafts.\",\n rules: [\n \"POST /v1/users/{userId}/drafts/send\",\n ],\n },\n {\n name: \"drafts.write\",\n description: \"Create, update, and delete Gmail drafts.\",\n rules: [\n \"POST /v1/users/{userId}/drafts\",\n \"PUT /v1/users/{userId}/drafts/{id}\",\n ],\n },\n {\n name: \"messages.send\",\n description: \"Send Gmail messages directly.\",\n rules: [\n \"POST /v1/users/{userId}/messages/send\",\n ],\n },\n {\n name: \"messages.write\",\n description: \"Import, insert, label, trash, and untrash Gmail messages.\",\n rules: [\n \"POST /v1/users/{userId}/messages\",\n \"POST /v1/users/{userId}/messages/import\",\n ],\n },\n ],\n },\n ],\n} as const satisfies FirewallConfig;\n\nexport const gmailDefaultAllowed: ReadonlyArray<\n PermissionNamesOf<typeof gmailFirewall>\n> = [\n \"drafts.read\",\n \"drafts.write\",\n \"history.read\",\n \"labels.read\",\n \"messages.read\",\n \"profile.read\",\n \"settings.read\",\n \"threads.read\",\n];\n\n\nexport const gmailDefaultUnknownPolicy = \"deny\" satisfies FirewallPolicyValue;\n\n\nexport const gmailCategories: Record<\n PermissionNamesOf<typeof gmailFirewall>,\n string\n> = {\n // — Mailbox (2) —\n \"profile.read\": \"Mailbox\",\n \"history.read\": \"Mailbox\",\n // — Messages (4) —\n \"messages.read\": \"Messages\",\n \"messages.write\": \"Messages\",\n \"messages.send\": \"Messages\",\n \"messages.delete\": \"Messages\",\n // — Drafts (3) —\n \"drafts.read\": \"Drafts\",\n \"drafts.write\": \"Drafts\",\n \"drafts.send\": \"Drafts\",\n // — Threads (3) —\n \"threads.read\": \"Threads\",\n \"threads.write\": \"Threads\",\n \"threads.delete\": \"Threads\",\n // — Labels (2) —\n \"labels.read\": \"Labels\",\n \"labels.write\": \"Labels\",\n // — Settings (3) —\n \"settings.read\": \"Settings\",\n \"settings.write\": \"Settings\",\n \"settings.sharing\": \"Settings\",\n // — Notifications (1) —\n \"notifications.write\": \"Notifications\",\n};\n\nexport const gmailCategoryOrder = [\"Mailbox\", \"Messages\", \"Drafts\", \"Threads\", \"Labels\", \"Settings\", \"Notifications\"] as const;\n"],"mappings":";;;;;;;;AAAA;AAQO,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,4BAA4B;AAGlC,IAAM,kBAGT;AAAA;AAAA,EAEF,gBAAgB;AAAA,EAChB,gBAAgB;AAAA;AAAA,EAEhB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA;AAAA,EAEnB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,eAAe;AAAA;AAAA,EAEf,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA;AAAA,EAElB,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA;AAAA,EAEpB,uBAAuB;AACzB;AAEO,IAAM,qBAAqB,CAAC,WAAW,YAAY,UAAU,WAAW,UAAU,YAAY,eAAe;","names":[]}
@@ -316,4 +316,4 @@ export {
316
316
  googleAnalyticsDefaultUnknownPolicy,
317
317
  googleAnalyticsFirewall
318
318
  };
319
- //# sourceMappingURL=google-analytics.generated-7EAP74EC.js.map
319
+ //# sourceMappingURL=google-analytics.generated-LR5RC6K5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/connectors/src/firewalls/google-analytics.generated.ts"],"sourcesContent":["// Auto-generated from Google's Analytics Discovery APIs and vm0's Analytics permission manifest.\n// Source: https://analyticsdata.googleapis.com/$discovery/rest?version=v1beta\n// Source: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1beta\n// Regenerate: cd turbo && pnpm -F @vm0/firewalls-generator generate:google-analytics\n//\n// DO NOT EDIT THIS FILE MANUALLY.\n\nimport type { FirewallConfig, FirewallPolicyValue, PermissionNamesOf } from \"../firewall-types\";\n\nexport const googleAnalyticsFirewall = {\n name: \"google-analytics\",\n description: \"Google Analytics Data and Admin APIs\",\n placeholders: {\n GOOGLE_ANALYTICS_TOKEN: \"ya29.A0CoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSa\",\n },\n apis: [\n {\n base: \"https://analyticsdata.googleapis.com\",\n auth: {\n headers: {\n Authorization: \"Bearer ${{ secrets.GOOGLE_ANALYTICS_TOKEN }}\",\n },\n },\n permissions: [\n {\n name: \"audience-exports.read\",\n description: \"Read and query GA4 audience export report jobs.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/audienceExports\",\n \"GET /v1beta/properties/{propertiesId}/audienceExports/{audienceExportsId}\",\n \"POST /v1beta/properties/{propertiesId}/audienceExports/{audienceExportsId}:query\",\n ],\n },\n {\n name: \"audience-exports.run\",\n description: \"Create GA4 audience export report jobs.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}/audienceExports\",\n ],\n },\n {\n name: \"metadata.read\",\n description: \"Read GA4 property report metadata.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/metadata\",\n ],\n },\n {\n name: \"reports.run\",\n description: \"Run GA4 property reports and compatibility checks.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}:batchRunPivotReports\",\n \"POST /v1beta/properties/{propertiesId}:batchRunReports\",\n \"POST /v1beta/properties/{propertiesId}:checkCompatibility\",\n \"POST /v1beta/properties/{propertiesId}:runPivotReport\",\n \"POST /v1beta/properties/{propertiesId}:runRealtimeReport\",\n \"POST /v1beta/properties/{propertiesId}:runReport\",\n ],\n },\n ],\n },\n {\n base: \"https://analyticsadmin.googleapis.com\",\n auth: {\n headers: {\n Authorization: \"Bearer ${{ secrets.GOOGLE_ANALYTICS_TOKEN }}\",\n },\n },\n permissions: [\n {\n name: \"access-reports.run\",\n description: \"Run account and property access reports.\",\n rules: [\n \"POST /v1beta/accounts/{accountsId}:runAccessReport\",\n \"POST /v1beta/properties/{propertiesId}:runAccessReport\",\n ],\n },\n {\n name: \"accounts.delete\",\n description: \"Delete Google Analytics accounts.\",\n rules: [\n \"DELETE /v1beta/accounts/{accountsId}\",\n ],\n },\n {\n name: \"accounts.read\",\n description: \"Read Google Analytics accounts and sharing settings.\",\n rules: [\n \"GET /v1beta/accountSummaries\",\n \"GET /v1beta/accounts\",\n \"GET /v1beta/accounts/{accountsId}\",\n \"GET /v1beta/accounts/{accountsId}/dataSharingSettings\",\n ],\n },\n {\n name: \"accounts.write\",\n description: \"Create account tickets and update Analytics accounts.\",\n rules: [\n \"PATCH /v1beta/accounts/{accountsId}\",\n \"POST /v1beta/accounts:provisionAccountTicket\",\n ],\n },\n {\n name: \"change-history.read\",\n description: \"Read account change history events.\",\n rules: [\n \"POST /v1beta/accounts/{accountsId}:searchChangeHistoryEvents\",\n ],\n },\n {\n name: \"custom-definitions.read\",\n description: \"Read GA4 custom dimensions and metrics.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/customDimensions\",\n \"GET /v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}\",\n \"GET /v1beta/properties/{propertiesId}/customMetrics\",\n \"GET /v1beta/properties/{propertiesId}/customMetrics/{customMetricsId}\",\n ],\n },\n {\n name: \"custom-definitions.write\",\n description: \"Create, update, and archive GA4 custom definitions.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}/customDimensions\",\n \"PATCH /v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}\",\n \"POST /v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}:archive\",\n \"POST /v1beta/properties/{propertiesId}/customMetrics\",\n \"PATCH /v1beta/properties/{propertiesId}/customMetrics/{customMetricsId}\",\n \"POST /v1beta/properties/{propertiesId}/customMetrics/{customMetricsId}:archive\",\n ],\n },\n {\n name: \"data-streams.delete\",\n description: \"Delete GA4 data streams.\",\n rules: [\n \"DELETE /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}\",\n ],\n },\n {\n name: \"data-streams.read\",\n description: \"Read GA4 data streams.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/dataStreams\",\n \"GET /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}\",\n ],\n },\n {\n name: \"data-streams.write\",\n description: \"Create and update GA4 data streams.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}/dataStreams\",\n \"PATCH /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}\",\n ],\n },\n {\n name: \"key-events.delete\",\n description: \"Delete GA4 key event definitions.\",\n rules: [\n \"DELETE /v1beta/properties/{propertiesId}/conversionEvents/{conversionEventsId}\",\n \"DELETE /v1beta/properties/{propertiesId}/keyEvents/{keyEventsId}\",\n ],\n },\n {\n name: \"key-events.read\",\n description: \"Read GA4 key event and conversion event definitions.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/conversionEvents\",\n \"GET /v1beta/properties/{propertiesId}/conversionEvents/{conversionEventsId}\",\n \"GET /v1beta/properties/{propertiesId}/keyEvents\",\n \"GET /v1beta/properties/{propertiesId}/keyEvents/{keyEventsId}\",\n ],\n },\n {\n name: \"key-events.write\",\n description: \"Create and update GA4 key event definitions.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}/conversionEvents\",\n \"PATCH /v1beta/properties/{propertiesId}/conversionEvents/{conversionEventsId}\",\n \"POST /v1beta/properties/{propertiesId}/keyEvents\",\n \"PATCH /v1beta/properties/{propertiesId}/keyEvents/{keyEventsId}\",\n ],\n },\n {\n name: \"links.delete\",\n description: \"Delete Firebase and Google Ads links.\",\n rules: [\n \"DELETE /v1beta/properties/{propertiesId}/firebaseLinks/{firebaseLinksId}\",\n \"DELETE /v1beta/properties/{propertiesId}/googleAdsLinks/{googleAdsLinksId}\",\n ],\n },\n {\n name: \"links.read\",\n description: \"Read Firebase and Google Ads links.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/firebaseLinks\",\n \"GET /v1beta/properties/{propertiesId}/googleAdsLinks\",\n ],\n },\n {\n name: \"links.write\",\n description: \"Create and update Firebase and Google Ads links.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}/firebaseLinks\",\n \"POST /v1beta/properties/{propertiesId}/googleAdsLinks\",\n \"PATCH /v1beta/properties/{propertiesId}/googleAdsLinks/{googleAdsLinksId}\",\n ],\n },\n {\n name: \"measurement-secrets.delete\",\n description: \"Delete GA4 Measurement Protocol secrets.\",\n rules: [\n \"DELETE /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}/measurementProtocolSecrets/{measurementProtocolSecretsId}\",\n ],\n },\n {\n name: \"measurement-secrets.read\",\n description: \"Read GA4 Measurement Protocol secrets.\",\n rules: [\n \"GET /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}/measurementProtocolSecrets\",\n \"GET /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}/measurementProtocolSecrets/{measurementProtocolSecretsId}\",\n ],\n },\n {\n name: \"measurement-secrets.write\",\n description: \"Create and update GA4 Measurement Protocol secrets.\",\n rules: [\n \"POST /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}/measurementProtocolSecrets\",\n \"PATCH /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}/measurementProtocolSecrets/{measurementProtocolSecretsId}\",\n ],\n },\n {\n name: \"properties.delete\",\n description: \"Delete GA4 properties.\",\n rules: [\n \"DELETE /v1beta/properties/{propertiesId}\",\n ],\n },\n {\n name: \"properties.read\",\n description: \"Read GA4 properties and property-level settings.\",\n rules: [\n \"GET /v1beta/properties\",\n \"GET /v1beta/properties/{propertiesId}\",\n \"GET /v1beta/properties/{propertiesId}/dataRetentionSettings\",\n ],\n },\n {\n name: \"properties.write\",\n description: \"Create and update GA4 properties and property settings.\",\n rules: [\n \"POST /v1beta/properties\",\n \"PATCH /v1beta/properties/{propertiesId}\",\n \"PATCH /v1beta/properties/{propertiesId}/dataRetentionSettings\",\n \"POST /v1beta/properties/{propertiesId}:acknowledgeUserDataCollection\",\n ],\n },\n ],\n },\n ],\n} as const satisfies FirewallConfig;\n\nexport const googleAnalyticsDefaultAllowed: ReadonlyArray<\n PermissionNamesOf<typeof googleAnalyticsFirewall>\n> = [\n \"reports.run\",\n \"metadata.read\",\n \"audience-exports.read\",\n \"audience-exports.run\",\n \"accounts.read\",\n \"properties.read\",\n \"access-reports.run\",\n \"change-history.read\",\n \"key-events.read\",\n \"custom-definitions.read\",\n \"data-streams.read\",\n \"links.read\",\n];\n\n\nexport const googleAnalyticsDefaultUnknownPolicy = \"deny\" satisfies FirewallPolicyValue;\n\n\nexport const googleAnalyticsCategories: Record<\n PermissionNamesOf<typeof googleAnalyticsFirewall>,\n string\n> = {\n // — Reports (4) —\n \"reports.run\": \"Reports\",\n \"metadata.read\": \"Reports\",\n \"audience-exports.read\": \"Reports\",\n \"audience-exports.run\": \"Reports\",\n // — Accounts (3) —\n \"accounts.read\": \"Accounts\",\n \"accounts.write\": \"Accounts\",\n \"accounts.delete\": \"Accounts\",\n // — Properties (3) —\n \"properties.read\": \"Properties\",\n \"properties.write\": \"Properties\",\n \"properties.delete\": \"Properties\",\n // — Admin Activity (2) —\n \"access-reports.run\": \"Admin Activity\",\n \"change-history.read\": \"Admin Activity\",\n // — Events & Definitions (5) —\n \"key-events.read\": \"Events & Definitions\",\n \"key-events.write\": \"Events & Definitions\",\n \"key-events.delete\": \"Events & Definitions\",\n \"custom-definitions.read\": \"Events & Definitions\",\n \"custom-definitions.write\": \"Events & Definitions\",\n // — Data Streams (6) —\n \"data-streams.read\": \"Data Streams\",\n \"data-streams.write\": \"Data Streams\",\n \"data-streams.delete\": \"Data Streams\",\n \"measurement-secrets.read\": \"Data Streams\",\n \"measurement-secrets.write\": \"Data Streams\",\n \"measurement-secrets.delete\": \"Data Streams\",\n // — Integrations (3) —\n \"links.read\": \"Integrations\",\n \"links.write\": \"Integrations\",\n \"links.delete\": \"Integrations\",\n};\n\nexport const googleAnalyticsCategoryOrder = [\"Reports\", \"Accounts\", \"Properties\", \"Admin Activity\", \"Events & Definitions\", \"Data Streams\", \"Integrations\"] as const;\n"],"mappings":";;;;;;;;AAAA;A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,qBAAqB;AAAA;AAAA,EAErB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA;AAAA,EAEvB,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA;AAAA,EAE5B,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,4BAA4B;AAAA,EAC5B,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA;AAAA,EAE9B,cAAc;AAAA,EACd,eAAe;AAAA,EACf,gBAAgB;AAClB;AAEO,IAAM,+BAA+B,CAAC,WAAW,YAAY,cAAc,kBAAkB,wBAAwB,gBAAgB,cAAc;","names":[]}
@@ -208,4 +208,4 @@ export {
208
208
  googleCalendarDefaultUnknownPolicy,
209
209
  googleCalendarFirewall
210
210
  };
211
- //# sourceMappingURL=google-calendar.generated-66JO7MZH.js.map
211
+ //# sourceMappingURL=google-calendar.generated-D4GJ7VO5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/connectors/src/firewalls/google-calendar.generated.ts"],"sourcesContent":["// Auto-generated from Google's Calendar Discovery API and vm0's Calendar permission manifest.\n// Source: https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest\n// Regenerate: cd turbo && pnpm -F @vm0/firewalls-generator generate:google-calendar\n//\n// DO NOT EDIT THIS FILE MANUALLY.\n\nimport type { FirewallConfig, FirewallPolicyValue, PermissionNamesOf } from \"../firewall-types\";\n\nexport const googleCalendarFirewall = {\n name: \"google-calendar\",\n description: \"Google Calendar API\",\n placeholders: {\n GOOGLE_CALENDAR_TOKEN: \"ya29.A0CoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSa\",\n },\n apis: [\n {\n base: \"https://www.googleapis.com/calendar\",\n auth: {\n headers: {\n Authorization: \"Bearer ${{ secrets.GOOGLE_CALENDAR_TOKEN }}\",\n },\n },\n permissions: [\n {\n name: \"acl.delete\",\n description: \"Delete Google Calendar sharing ACL rules.\",\n rules: [\n \"DELETE /v3/calendars/{calendarId}/acl/{ruleId}\",\n ],\n },\n {\n name: \"acl.read\",\n description: \"Read Google Calendar sharing ACL rules.\",\n rules: [\n \"GET /v3/calendars/{calendarId}/acl\",\n \"GET /v3/calendars/{calendarId}/acl/{ruleId}\",\n ],\n },\n {\n name: \"acl.write\",\n description: \"Create and update Google Calendar sharing ACL rules.\",\n rules: [\n \"POST /v3/calendars/{calendarId}/acl\",\n \"PUT /v3/calendars/{calendarId}/acl/{ruleId}\",\n \"PATCH /v3/calendars/{calendarId}/acl/{ruleId}\",\n ],\n },\n {\n name: \"calendar-list.delete\",\n description: \"Remove calendars from the user's calendar list.\",\n rules: [\n \"DELETE /v3/users/me/calendarList/{calendarId}\",\n ],\n },\n {\n name: \"calendar-list.read\",\n description: \"Read the user's subscribed calendar list.\",\n rules: [\n \"GET /v3/users/me/calendarList\",\n \"GET /v3/users/me/calendarList/{calendarId}\",\n ],\n },\n {\n name: \"calendar-list.write\",\n description: \"Add and update calendars in the user's calendar list.\",\n rules: [\n \"POST /v3/users/me/calendarList\",\n \"PUT /v3/users/me/calendarList/{calendarId}\",\n \"PATCH /v3/users/me/calendarList/{calendarId}\",\n ],\n },\n {\n name: \"calendars.clear\",\n description: \"Clear all events from a Google calendar.\",\n rules: [\n \"POST /v3/calendars/{calendarId}/clear\",\n ],\n },\n {\n name: \"calendars.delete\",\n description: \"Delete Google calendars.\",\n rules: [\n \"DELETE /v3/calendars/{calendarId}\",\n ],\n },\n {\n name: \"calendars.read\",\n description: \"Read Google Calendar metadata.\",\n rules: [\n \"GET /v3/calendars/{calendarId}\",\n ],\n },\n {\n name: \"calendars.write\",\n description: \"Create and update secondary Google calendars.\",\n rules: [\n \"POST /v3/calendars\",\n \"PUT /v3/calendars/{calendarId}\",\n \"PATCH /v3/calendars/{calendarId}\",\n ],\n },\n {\n name: \"colors.read\",\n description: \"Read Google Calendar color definitions.\",\n rules: [\n \"GET /v3/colors\",\n ],\n },\n {\n name: \"events.delete\",\n description: \"Delete Google Calendar events.\",\n rules: [\n \"DELETE /v3/calendars/{calendarId}/events/{eventId}\",\n ],\n },\n {\n name: \"events.read\",\n description: \"Read Google Calendar events and recurring instances.\",\n rules: [\n \"GET /v3/calendars/{calendarId}/events\",\n \"GET /v3/calendars/{calendarId}/events/{eventId}\",\n \"GET /v3/calendars/{calendarId}/events/{eventId}/instances\",\n ],\n },\n {\n name: \"events.write\",\n description: \"Create, update, import, quick-add, and move events.\",\n rules: [\n \"POST /v3/calendars/{calendarId}/events\",\n \"POST /v3/calendars/{calendarId}/events/import\",\n \"POST /v3/calendars/{calendarId}/events/quickAdd\",\n \"PUT /v3/calendars/{calendarId}/events/{eventId}\",\n \"PATCH /v3/calendars/{calendarId}/events/{eventId}\",\n \"POST /v3/calendars/{calendarId}/events/{eventId}/move\",\n ],\n },\n {\n name: \"freebusy.query\",\n description: \"Query free/busy availability for calendars.\",\n rules: [\n \"POST /v3/freeBusy\",\n ],\n },\n {\n name: \"notifications.write\",\n description: \"Create and stop Google Calendar notification channels.\",\n rules: [\n \"POST /v3/calendars/{calendarId}/acl/watch\",\n \"POST /v3/calendars/{calendarId}/events/watch\",\n \"POST /v3/channels/stop\",\n \"POST /v3/users/me/calendarList/watch\",\n \"POST /v3/users/me/settings/watch\",\n ],\n },\n {\n name: \"settings.read\",\n description: \"Read the user's Google Calendar settings.\",\n rules: [\n \"GET /v3/users/me/settings\",\n \"GET /v3/users/me/settings/{setting}\",\n ],\n },\n ],\n },\n ],\n} as const satisfies FirewallConfig;\n\nexport const googleCalendarDefaultAllowed: ReadonlyArray<\n PermissionNamesOf<typeof googleCalendarFirewall>\n> = [\n \"calendars.read\",\n \"events.read\",\n \"calendar-list.read\",\n \"settings.read\",\n \"freebusy.query\",\n \"colors.read\",\n];\n\n\nexport const googleCalendarDefaultUnknownPolicy = \"deny\" satisfies FirewallPolicyValue;\n\n\nexport const googleCalendarCategories: Record<\n PermissionNamesOf<typeof googleCalendarFirewall>,\n string\n> = {\n // — Calendars (4) —\n \"calendars.read\": \"Calendars\",\n \"calendars.write\": \"Calendars\",\n \"calendars.delete\": \"Calendars\",\n \"calendars.clear\": \"Calendars\",\n // — Events (3) —\n \"events.read\": \"Events\",\n \"events.write\": \"Events\",\n \"events.delete\": \"Events\",\n // — Calendar List (3) —\n \"calendar-list.read\": \"Calendar List\",\n \"calendar-list.write\": \"Calendar List\",\n \"calendar-list.delete\": \"Calendar List\",\n // — Sharing (3) —\n \"acl.read\": \"Sharing\",\n \"acl.write\": \"Sharing\",\n \"acl.delete\": \"Sharing\",\n // — Settings (1) —\n \"settings.read\": \"Settings\",\n // — Availability (2) —\n \"freebusy.query\": \"Availability\",\n \"colors.read\": \"Availability\",\n // — Notifications (1) —\n \"notifications.write\": \"Notifications\",\n};\n\nexport const googleCalendarCategoryOrder = [\"Calendars\", \"Events\", \"Calendar List\", \"Sharing\", \"Settings\", \"Availability\", \"Notifications\"] as const;\n"],"mappings":";;;;;;;;AAAA;AAQO,IAAM,yBAAyB;AAAA,EACpC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAAA,IACZ,uBAAuB;AAAA,EACzB;AAAA,EACA,MAAM;AAAA,IACJ;AAAA,MACE,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,SAAS;AAAA,UACP,eAAe;AAAA,QACjB;AAAA,MACF;AAAA,MACA,aAAa;AAAA,QACX;AAAA,UACE,MAAM;AAAA,UACN,aAAa;AAAA,UACb,OAAO;AAAA,YACL;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,aAAa;AAAA,UACb,OAAO;AAAA,YACL;AAAA,YACA;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,aAAa;AAAA,UACb,OAAO;AAAA,YACL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M;AAAA,UACN,aAAa;AAAA,UACb,OAAO;AAAA,YACL;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,aAAa;AAAA,UACb,OAAO;AAAA,YACL;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,aAAa;AAAA,UACb,OAAO;AAAA,YACL;AAAA,YACA;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,+BAET;AAAA,EACF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,qCAAqC;AAG3C,IAAM,2BAGT;AAAA;AAAA,EAEF,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,mBAAmB;AAAA;AAAA,EAEnB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,iBAAiB;AAAA;AAAA,EAEjB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,wBAAwB;AAAA;AAAA,EAExB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,cAAc;AAAA;AAAA,EAEd,iBAAiB;AAAA;AAAA,EAEjB,kBAAkB;AAAA,EAClB,eAAe;AAAA;AAAA,EAEf,uBAAuB;AACzB;AAEO,IAAM,8BAA8B,CAAC,aAAa,UAAU,iBAAiB,WAAW,YAAY,gBAAgB,eAAe;","names":[]}
@@ -9603,4 +9603,4 @@ export {
9603
9603
  googleCloudFirewall,
9604
9604
  googleCloudGenerationStats
9605
9605
  };
9606
- //# sourceMappingURL=google-cloud.generated-H4E5WNYB.js.map
9606
+ //# sourceMappingURL=google-cloud.generated-753VHV7L.js.map