@twentyhq/meet 0.0.0-stage → 1.0.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 (172) hide show
  1. package/README.md +48 -2
  2. package/dependencies/yarn.lock +1863 -0
  3. package/manifest.json +1901 -0
  4. package/package.json +44 -4
  5. package/public/gallery/meet-cover-image-1.png +0 -0
  6. package/public/gallery/meet-cover-image-2.png +0 -0
  7. package/public/gallery/meet-cover-image-3.png +0 -0
  8. package/public/logo.svg +1 -0
  9. package/src/constants/meet-call-summary-prompt.constant.ts +54 -0
  10. package/src/constants/meet.constant.ts +17 -0
  11. package/src/constants/universal-identifiers.ts +35 -0
  12. package/src/logic-functions/constants/calendar-event-matching.constant.ts +3 -0
  13. package/src/logic-functions/constants/google-docs-api.constant.ts +10 -0
  14. package/src/logic-functions/constants/google-drive-api.constant.ts +1 -0
  15. package/src/logic-functions/constants/google-pubsub-push.constant.ts +7 -0
  16. package/src/logic-functions/constants/google-user-info.constant.ts +2 -0
  17. package/src/logic-functions/constants/google-workspace-events.constant.ts +17 -0
  18. package/src/logic-functions/constants/meet-api.constant.ts +9 -0
  19. package/src/logic-functions/constants/meet-call-summary.constant.ts +3 -0
  20. package/src/logic-functions/constants/meet-import.constant.ts +7 -0
  21. package/src/logic-functions/constants/meet-recording-import.constant.ts +7 -0
  22. package/src/logic-functions/constants/restricted-field-placeholder.constant.ts +2 -0
  23. package/src/logic-functions/meet-events-resolver.mjs +1345 -0
  24. package/src/logic-functions/meet-events-resolver.mjs.map +7 -0
  25. package/src/logic-functions/meet-events-resolver.ts +89 -0
  26. package/src/logic-functions/meet-handle-event.mjs +665 -0
  27. package/src/logic-functions/meet-handle-event.mjs.map +7 -0
  28. package/src/logic-functions/meet-handle-event.ts +86 -0
  29. package/src/logic-functions/meet-identify-account.mjs +369 -0
  30. package/src/logic-functions/meet-identify-account.mjs.map +7 -0
  31. package/src/logic-functions/meet-identify-account.ts +42 -0
  32. package/src/logic-functions/meet-import-conference.mjs +1465 -0
  33. package/src/logic-functions/meet-import-conference.mjs.map +7 -0
  34. package/src/logic-functions/meet-import-conference.ts +101 -0
  35. package/src/logic-functions/meet-import-recording.mjs +794 -0
  36. package/src/logic-functions/meet-import-recording.mjs.map +7 -0
  37. package/src/logic-functions/meet-import-recording.ts +99 -0
  38. package/src/logic-functions/meet-queue-conference-imports.mjs +711 -0
  39. package/src/logic-functions/meet-queue-conference-imports.mjs.map +7 -0
  40. package/src/logic-functions/meet-queue-conference-imports.ts +62 -0
  41. package/src/logic-functions/meet-refresh-connections.mjs +457 -0
  42. package/src/logic-functions/meet-refresh-connections.mjs.map +7 -0
  43. package/src/logic-functions/meet-refresh-connections.ts +64 -0
  44. package/src/logic-functions/meet-register-connection.mjs +837 -0
  45. package/src/logic-functions/meet-register-connection.mjs.map +7 -0
  46. package/src/logic-functions/meet-register-connection.ts +81 -0
  47. package/src/logic-functions/meet-summarize-call-recording.mjs +645 -0
  48. package/src/logic-functions/meet-summarize-call-recording.mjs.map +7 -0
  49. package/src/logic-functions/meet-summarize-call-recording.ts +111 -0
  50. package/src/logic-functions/meet-unregister-connection.mjs +610 -0
  51. package/src/logic-functions/meet-unregister-connection.mjs.map +7 -0
  52. package/src/logic-functions/meet-unregister-connection.ts +57 -0
  53. package/src/logic-functions/types/calendar-event-candidate.type.ts +6 -0
  54. package/src/logic-functions/types/call-recording-for-summary.type.ts +5 -0
  55. package/src/logic-functions/types/call-recording-sync-fields.type.ts +12 -0
  56. package/src/logic-functions/types/call-recording-upsert-outcome.type.ts +4 -0
  57. package/src/logic-functions/types/google-doc-lists.type.ts +4 -0
  58. package/src/logic-functions/types/google-doc-markdown-segment.type.ts +5 -0
  59. package/src/logic-functions/types/google-doc-paragraph-element.type.ts +8 -0
  60. package/src/logic-functions/types/google-doc-paragraph.type.ts +7 -0
  61. package/src/logic-functions/types/google-doc-tab.type.ts +10 -0
  62. package/src/logic-functions/types/google-doc.type.ts +6 -0
  63. package/src/logic-functions/types/google-pubsub-push-body.type.ts +6 -0
  64. package/src/logic-functions/types/google-request-method.type.ts +1 -0
  65. package/src/logic-functions/types/google-user-info.type.ts +4 -0
  66. package/src/logic-functions/types/google-workspace-events-operation.type.ts +8 -0
  67. package/src/logic-functions/types/meet-call-summary-outcome.type.ts +6 -0
  68. package/src/logic-functions/types/meet-collection-page.type.ts +3 -0
  69. package/src/logic-functions/types/meet-conference-record.type.ts +7 -0
  70. package/src/logic-functions/types/meet-conference-sync-outcome.type.ts +5 -0
  71. package/src/logic-functions/types/meet-conference-sync-result.type.ts +7 -0
  72. package/src/logic-functions/types/meet-daily-job-name.type.ts +1 -0
  73. package/src/logic-functions/types/meet-event-data.type.ts +5 -0
  74. package/src/logic-functions/types/meet-event-outcome.type.ts +4 -0
  75. package/src/logic-functions/types/meet-event-subscription.type.ts +8 -0
  76. package/src/logic-functions/types/meet-event.type.ts +5 -0
  77. package/src/logic-functions/types/meet-exception-code.type.ts +12 -0
  78. package/src/logic-functions/types/meet-exception.type.ts +25 -0
  79. package/src/logic-functions/types/meet-participant.type.ts +8 -0
  80. package/src/logic-functions/types/meet-recording-import-outcome.type.ts +6 -0
  81. package/src/logic-functions/types/meet-recording.type.ts +7 -0
  82. package/src/logic-functions/types/meet-smart-note.type.ts +7 -0
  83. package/src/logic-functions/types/meet-space.type.ts +5 -0
  84. package/src/logic-functions/types/meet-transcript-entry.type.ts +8 -0
  85. package/src/logic-functions/types/meet-transcript.type.ts +7 -0
  86. package/src/logic-functions/types/transcript-entry.type.ts +7 -0
  87. package/src/logic-functions/utils/build-google-api-url-or-throw.util.ts +30 -0
  88. package/src/logic-functions/utils/build-google-doc-markdown-segment.util.ts +67 -0
  89. package/src/logic-functions/utils/build-meet-artifact-import-job.util.ts +25 -0
  90. package/src/logic-functions/utils/build-meet-call-recording-sync-fields.util.ts +48 -0
  91. package/src/logic-functions/utils/build-meet-call-summary-job.util.ts +19 -0
  92. package/src/logic-functions/utils/build-meet-call-summary-prompt.util.ts +50 -0
  93. package/src/logic-functions/utils/build-meet-conference-import-job.util.ts +26 -0
  94. package/src/logic-functions/utils/build-meet-conference-import-payload.util.ts +18 -0
  95. package/src/logic-functions/utils/build-meet-conference-record-filter.util.ts +8 -0
  96. package/src/logic-functions/utils/build-meet-daily-job.util.ts +17 -0
  97. package/src/logic-functions/utils/build-meet-recording-import-job.util.ts +20 -0
  98. package/src/logic-functions/utils/build-meet-url-or-throw.util.ts +15 -0
  99. package/src/logic-functions/utils/build-meet-user-target-resource.util.ts +2 -0
  100. package/src/logic-functions/utils/can-renew-meet-event-subscription.util.ts +18 -0
  101. package/src/logic-functions/utils/chunk-into-batches.util.ts +10 -0
  102. package/src/logic-functions/utils/claim-meet-event-subscription.util.ts +10 -0
  103. package/src/logic-functions/utils/compute-call-recording-id-for-meet-conference.util.ts +16 -0
  104. package/src/logic-functions/utils/convert-google-doc-paragraph-to-markdown.util.ts +62 -0
  105. package/src/logic-functions/utils/convert-google-doc-tab-to-markdown.util.ts +49 -0
  106. package/src/logic-functions/utils/create-meet-event-subscription-or-throw.util.ts +41 -0
  107. package/src/logic-functions/utils/delete-meet-event-subscription.util.ts +22 -0
  108. package/src/logic-functions/utils/enqueue-meet-conference-imports-or-throw.util.ts +39 -0
  109. package/src/logic-functions/utils/enqueue-meet-daily-jobs-or-throw.util.ts +35 -0
  110. package/src/logic-functions/utils/ensure-meet-event-subscription-or-throw.util.ts +51 -0
  111. package/src/logic-functions/utils/escape-markdown-text.util.ts +4 -0
  112. package/src/logic-functions/utils/escape-sql-like-pattern.util.ts +2 -0
  113. package/src/logic-functions/utils/extract-bearer-token.util.ts +23 -0
  114. package/src/logic-functions/utils/extract-meet-name-from-doc-title.util.ts +16 -0
  115. package/src/logic-functions/utils/fetch-meet-json.util.ts +107 -0
  116. package/src/logic-functions/utils/find-call-recording-for-summary.util.ts +38 -0
  117. package/src/logic-functions/utils/find-call-recording-video-state.util.ts +25 -0
  118. package/src/logic-functions/utils/find-meet-calendar-event.util.ts +74 -0
  119. package/src/logic-functions/utils/find-meet-conference-title.util.ts +38 -0
  120. package/src/logic-functions/utils/find-meet-event-subscription.util.ts +32 -0
  121. package/src/logic-functions/utils/find-meet-smart-notes-markdown.util.ts +32 -0
  122. package/src/logic-functions/utils/format-seconds-as-clock-timestamp.util.ts +20 -0
  123. package/src/logic-functions/utils/get-conference-record-name-from-artifact-name.util.ts +6 -0
  124. package/src/logic-functions/utils/get-connection-access-token-or-throw.util.ts +18 -0
  125. package/src/logic-functions/utils/get-google-doc-title.util.ts +31 -0
  126. package/src/logic-functions/utils/get-google-doc.util.ts +30 -0
  127. package/src/logic-functions/utils/get-google-drive-file-size-bytes-or-throw.util.ts +31 -0
  128. package/src/logic-functions/utils/get-meet-conference-record.util.ts +18 -0
  129. package/src/logic-functions/utils/get-meet-connection-subscription-key.util.ts +3 -0
  130. package/src/logic-functions/utils/get-meet-event-subscription-key.util.ts +2 -0
  131. package/src/logic-functions/utils/get-meet-participant-display-name.util.ts +20 -0
  132. package/src/logic-functions/utils/get-meet-recording-drive-file-id.util.ts +16 -0
  133. package/src/logic-functions/utils/get-meet-recording.util.ts +18 -0
  134. package/src/logic-functions/utils/get-meet-space.util.ts +15 -0
  135. package/src/logic-functions/utils/get-random-delay-milliseconds.util.ts +4 -0
  136. package/src/logic-functions/utils/is-google-doc-unreadable-error.util.ts +9 -0
  137. package/src/logic-functions/utils/is-google-pubsub-push-authorized.util.ts +31 -0
  138. package/src/logic-functions/utils/is-meet-ai-summary-enabled-for-member.util.ts +22 -0
  139. package/src/logic-functions/utils/is-transcript-entry-list.util.ts +16 -0
  140. package/src/logic-functions/utils/join-google-doc-markdown-segments.util.ts +102 -0
  141. package/src/logic-functions/utils/list-calendar-events-in-window.util.ts +142 -0
  142. package/src/logic-functions/utils/list-meet-collection.util.ts +79 -0
  143. package/src/logic-functions/utils/list-meet-conference-records.util.ts +22 -0
  144. package/src/logic-functions/utils/list-meet-participants.util.ts +15 -0
  145. package/src/logic-functions/utils/list-meet-recordings.util.ts +15 -0
  146. package/src/logic-functions/utils/list-meet-smart-notes.util.ts +15 -0
  147. package/src/logic-functions/utils/list-meet-transcript-entries.util.ts +15 -0
  148. package/src/logic-functions/utils/list-meet-transcripts.util.ts +15 -0
  149. package/src/logic-functions/utils/map-meet-transcript-entries.util.ts +64 -0
  150. package/src/logic-functions/utils/normalize-meeting-url.util.ts +18 -0
  151. package/src/logic-functions/utils/open-google-drive-file-download-or-throw.util.ts +36 -0
  152. package/src/logic-functions/utils/parse-meet-call-summary-response.util.ts +36 -0
  153. package/src/logic-functions/utils/parse-meet-event-data-or-throw.util.ts +36 -0
  154. package/src/logic-functions/utils/parse-meet-event-or-throw.util.ts +35 -0
  155. package/src/logic-functions/utils/parse-retry-after-milliseconds.util.ts +27 -0
  156. package/src/logic-functions/utils/put-stream-to-upload-url-or-throw.util.ts +73 -0
  157. package/src/logic-functions/utils/read-meet-event-subscription-or-throw.util.ts +24 -0
  158. package/src/logic-functions/utils/release-meet-event-subscription.util.ts +29 -0
  159. package/src/logic-functions/utils/renew-meet-event-subscription-or-throw.util.ts +32 -0
  160. package/src/logic-functions/utils/run-meet-call-summarizer-or-throw.util.ts +28 -0
  161. package/src/logic-functions/utils/save-call-recording-summary-if-empty.util.ts +29 -0
  162. package/src/logic-functions/utils/save-call-recording-video.util.ts +23 -0
  163. package/src/logic-functions/utils/should-generate-meet-ai-summary.util.ts +17 -0
  164. package/src/logic-functions/utils/sleep-for-milliseconds.util.ts +2 -0
  165. package/src/logic-functions/utils/split-surrounding-whitespace.util.ts +10 -0
  166. package/src/logic-functions/utils/store-meet-connection-subscription.util.ts +46 -0
  167. package/src/logic-functions/utils/sync-meet-conference-or-throw.util.ts +129 -0
  168. package/src/logic-functions/utils/upload-google-drive-file-as-call-recording-video-or-throw.util.ts +73 -0
  169. package/src/logic-functions/utils/upsert-call-recording-or-throw.util.ts +104 -0
  170. package/src/logic-functions/utils/verify-google-pubsub-push-token-or-throw.util.ts +71 -0
  171. package/src/logic-functions/utils/wait-for-google-workspace-events-operation-or-throw.util.ts +53 -0
  172. package/tsconfig.json +39 -0
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@twentyhq/meet",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Import Google Meet transcripts and Gemini notes into Twenty Call Recordings.",
5
+ "author": "Twenty",
6
+ "license": "MIT",
7
+ "engines": {
8
+ "twenty": ">=2.59.0",
9
+ "node": "^26.5.1",
10
+ "npm": "please-use-yarn",
11
+ "yarn": ">=4.0.2"
12
+ },
13
+ "keywords": [
14
+ "twenty-app"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/twentyhq/twenty.git",
19
+ "directory": "packages/twenty-apps/public/meet"
20
+ },
21
+ "homepage": "https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/public/meet",
22
+ "packageManager": "yarn@4.18.1",
23
+ "scripts": {
24
+ "twenty": "twenty",
25
+ "lint": "oxlint -c .oxlintrc.json .",
26
+ "lint:fix": "oxlint --fix -c .oxlintrc.json .",
27
+ "typecheck": "tsgo --noEmit -p tsconfig.spec.json",
28
+ "test": "vitest run",
29
+ "test:unit": "vitest run --config vitest.unit.config.ts",
30
+ "test:watch": "vitest --config vitest.unit.config.ts"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^24.7.2",
34
+ "@typescript/native-preview": "^7.0.0-dev.20260116.1",
35
+ "oxlint": "^0.16.0",
36
+ "twenty-client-sdk": "2.59.0",
37
+ "twenty-sdk": "2.59.0",
38
+ "typescript": "^5.9.3",
39
+ "vite-tsconfig-paths": "^4.2.1",
40
+ "vitest": "^4.1.12"
41
+ },
42
+ "dependencies": {
43
+ "@sniptt/guards": "^0.2.0",
44
+ "jose": "^6.2.12"
45
+ }
46
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" viewBox="0 0 192 192"><path fill="url(#a)" d="M110.015 108.88c-6.829-4.718-6.921-14.778-.179-19.62L165 49.643c7.94-5.701 19-.038 19 9.737v77.755c0 9.675-10.861 15.359-18.821 9.859z"/><path fill="url(#b)" d="M8 71c0-24.3 19.7-44 44-44h64c11.046 0 20 8.954 20 20v98c0 11.046-8.954 20-20 20H28c-11.046 0-20-8.954-20-20z"/><mask id="e" width="129" height="138" x="8" y="27" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M8 71c0-24.3 19.7-44 44-44h64c11.046 0 20 8.954 20 20v98c0 11.046-8.954 20-20 20H28c-11.046 0-20-8.954-20-20z"/></mask><g filter="url(#c)" mask="url(#e)"><path fill="url(#f)" d="m73.906 99.198 110-63.198v124z"/></g><circle cx="38" cy="135" r="14" fill="#fff"/><defs><linearGradient id="a" x1="128.8" x2="227.2" y1="104.44" y2="104.44" gradientUnits="userSpaceOnUse"><stop stop-color="#f6a100"/><stop offset="1" stop-color="#ffbe00"/></linearGradient><linearGradient id="f" x1="136.22" x2="78.5" y1="91.32" y2="91.19" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#ffb5e8"/><stop offset="1" stop-color="#ffdbf5" stop-opacity="0"/></linearGradient><radialGradient id="b" cx="0" cy="0" r="1" gradientTransform="matrix(-159.725 0 0 -135.852 160.325 96)" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#ffe921"/><stop offset="1" stop-color="#fec700"/></radialGradient><filter id="c" width="166" height="180" x="45.91" y="8" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_37584_9338" stdDeviation="14"/></filter></defs></svg>
@@ -0,0 +1,54 @@
1
+ export const MEET_CALL_SUMMARY_UNAVAILABLE_PREFIX =
2
+ 'SUMMARY_UNAVAILABLE:';
3
+ export const MEET_CALL_SUMMARY_PROMPT = [
4
+ 'You are an AI meeting note-taker for a CRM. You receive the diarized,',
5
+ 'time-stamped transcript of a recorded call and produce clean, factual',
6
+ 'meeting notes for the rep who attended.',
7
+ '',
8
+ 'Output GitHub-flavored Markdown only — no preamble, no closing remarks, no',
9
+ 'surrounding code fences. Emit exactly these sections, in this order, each',
10
+ 'with its heading exactly as written. Omit a section only when its rule says',
11
+ 'to.',
12
+ '',
13
+ '## Gist',
14
+ 'A single sentence (no bullet) capturing the essence of the meeting.',
15
+ '',
16
+ '## Overview',
17
+ 'One paragraph of 2-4 sentences covering what the meeting was about and how',
18
+ 'it ended. No bullets.',
19
+ '',
20
+ '## Action Items',
21
+ 'Concrete follow-ups, grouped by the person responsible. Write each owner as',
22
+ 'a bold line, then their tasks as a bulleted list beneath it. Use the',
23
+ 'speaker name from the transcript, or "Unassigned" when no owner is clear.',
24
+ 'Example:',
25
+ '**Alex**',
26
+ '- Send the pricing deck',
27
+ '- Follow up on Friday',
28
+ 'If the call produced no follow-ups, write the single line: None.',
29
+ '',
30
+ '## Notes',
31
+ 'The discussion split into short topical sections in chronological order.',
32
+ 'Begin each section with a bold title and the [mm:ss] timestamp it started',
33
+ 'at, then summarize it as concise bullets. Example:',
34
+ '**Introductions** — 0:00',
35
+ '- ...',
36
+ '**Pricing discussion** — 4:12',
37
+ '- ...',
38
+ '',
39
+ '## Keywords',
40
+ 'A single comma-separated line of the most important terms, names, and',
41
+ 'topics from the call.',
42
+ '',
43
+ 'Grounding rules: use only information present in the transcript. Never',
44
+ 'invent names, numbers, commitments, outcomes, or times — reuse the [mm:ss]',
45
+ 'timestamps exactly as they appear in the transcript.',
46
+ '',
47
+ 'If the transcript is too short, unintelligible, or contains no substantive',
48
+ 'discussion, ignore the output format above and return exactly one line in',
49
+ 'this format:',
50
+ `${MEET_CALL_SUMMARY_UNAVAILABLE_PREFIX} <one short sentence explaining why the transcript cannot be summarized reliably>`,
51
+ 'The reason must describe only what is observable in the transcript. Be',
52
+ 'specific and do not speculate. Example:',
53
+ `${MEET_CALL_SUMMARY_UNAVAILABLE_PREFIX} The transcript contains only greetings and audio checks, with no substantive discussion.`,
54
+ ].join('\n');
@@ -0,0 +1,17 @@
1
+ export const MEET_USER_PROVIDER_NAME = 'google-meet-user';
2
+ export const GOOGLE_CLIENT_ID_SERVER_VARIABLE_NAME = 'GOOGLE_CLIENT_ID';
3
+ export const GOOGLE_CLIENT_SECRET_SERVER_VARIABLE_NAME = 'GOOGLE_CLIENT_SECRET';
4
+ export const MEET_READONLY_SCOPE =
5
+ 'https://www.googleapis.com/auth/meetings.space.readonly';
6
+ export const GOOGLE_DOCS_READONLY_SCOPE =
7
+ 'https://www.googleapis.com/auth/documents.readonly';
8
+ export const GOOGLE_DRIVE_MEET_READONLY_SCOPE =
9
+ 'https://www.googleapis.com/auth/drive.meet.readonly';
10
+ export const MEET_PUBSUB_TOPIC_SERVER_VARIABLE_NAME =
11
+ 'GOOGLE_MEET_PUBSUB_TOPIC';
12
+ export const MEET_PUBSUB_AUDIENCE_SERVER_VARIABLE_NAME =
13
+ 'GOOGLE_MEET_PUBSUB_AUDIENCE';
14
+ export const MEET_PUBSUB_SERVICE_ACCOUNT_EMAIL_SERVER_VARIABLE_NAME =
15
+ 'GOOGLE_MEET_PUBSUB_SERVICE_ACCOUNT_EMAIL';
16
+ export const MEET_AI_SUMMARY_ENABLED_APP_VARIABLE_NAME =
17
+ 'GOOGLE_MEET_AI_SUMMARY_ENABLED';
@@ -0,0 +1,35 @@
1
+ export const APP_DISPLAY_NAME = 'Meet';
2
+ export const APP_DESCRIPTION =
3
+ 'Import Google Meet transcripts, Gemini notes and recordings into Call Recordings.';
4
+ export const APPLICATION_UNIVERSAL_IDENTIFIER =
5
+ '6d3edf97-994f-4489-8207-3822fed19c38';
6
+ export const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER =
7
+ '8d10a3c9-8002-4465-897d-cdae4562fbea';
8
+ export const MEET_USER_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER =
9
+ 'e5dc586b-4063-42d7-a0ed-f56bab814d1e';
10
+ export const MEET_IMPORT_CONFERENCE_UNIVERSAL_IDENTIFIER =
11
+ '7df0892f-dab3-4d16-b22f-fb5902d274e9';
12
+ export const MEET_QUEUE_CONFERENCE_IMPORTS_UNIVERSAL_IDENTIFIER =
13
+ '5adbbbd5-3be6-4eff-847c-9e7dda8b9288';
14
+ export const MEET_IDENTIFY_ACCOUNT_UNIVERSAL_IDENTIFIER =
15
+ '0bfd4419-b0b1-49e6-9bc3-c346be5f45ca';
16
+ export const MEET_REGISTER_CONNECTION_UNIVERSAL_IDENTIFIER =
17
+ '0659cc49-b737-481a-84bd-5cc07ddae5b0';
18
+ export const MEET_UNREGISTER_CONNECTION_UNIVERSAL_IDENTIFIER =
19
+ '57475b5d-5365-4dde-a1f2-451d33b6be05';
20
+ export const MEET_HANDLE_EVENT_UNIVERSAL_IDENTIFIER =
21
+ '7f40cfd3-93f1-4e50-9846-e25b4119c8f9';
22
+ export const MEET_EVENTS_RESOLVER_UNIVERSAL_IDENTIFIER =
23
+ '99d08b46-5857-4d4c-bf6a-62ccf90305cd';
24
+ export const MEET_REFRESH_CONNECTIONS_UNIVERSAL_IDENTIFIER =
25
+ '457d16c0-1407-4a62-b538-ffb7c9ac7b35';
26
+ export const MEET_CALL_SUMMARIZER_AGENT_UNIVERSAL_IDENTIFIER =
27
+ '2263105b-d57c-45a2-a3df-cf4f953d5371';
28
+ export const MEET_SUMMARIZE_CALL_RECORDING_UNIVERSAL_IDENTIFIER =
29
+ '707864b1-2b1c-438a-b1b8-f4a0ba99a413';
30
+ export const MEET_IMPORT_RECORDING_UNIVERSAL_IDENTIFIER =
31
+ 'b1076ce0-d85c-4270-a420-ed34c2bb5cca';
32
+ export const CALL_RECORDING_VIDEO_FIELD_UNIVERSAL_IDENTIFIER =
33
+ 'bb9523d3-457e-4f4b-8c79-27a77afb87da';
34
+ export const MEET_AI_SUMMARY_ENABLED_APP_VARIABLE_UNIVERSAL_IDENTIFIER =
35
+ '1a154ff0-35c9-475c-9abf-ac2e7d5904eb';
@@ -0,0 +1,3 @@
1
+ export const CALENDAR_EVENT_MATCHING_WINDOW_MILLISECONDS = 60 * 60 * 1_000;
2
+ export const CALENDAR_EVENT_PAGE_SIZE = 200;
3
+ export const MAX_CALENDAR_EVENT_PAGES = 10;
@@ -0,0 +1,10 @@
1
+ export const GOOGLE_DOCS_API_BASE_URL = 'https://docs.googleapis.com/v1';
2
+ export const GOOGLE_DOC_UNREADABLE_STATUSES = new Set([403, 404]);
3
+ export const GOOGLE_DOC_ORDERED_GLYPH_TYPES = new Set([
4
+ 'DECIMAL',
5
+ 'ZERO_DECIMAL',
6
+ 'UPPER_ALPHA',
7
+ 'ALPHA',
8
+ 'UPPER_ROMAN',
9
+ 'ROMAN',
10
+ ]);
@@ -0,0 +1 @@
1
+ export const GOOGLE_DRIVE_API_BASE_URL = 'https://www.googleapis.com/drive/v3';
@@ -0,0 +1,7 @@
1
+ export const GOOGLE_SIGNING_KEYS_URL =
2
+ 'https://www.googleapis.com/oauth2/v3/certs';
3
+ export const GOOGLE_TOKEN_ISSUERS = [
4
+ 'https://accounts.google.com',
5
+ 'accounts.google.com',
6
+ ];
7
+ export const GOOGLE_PUBSUB_PUSH_TOKEN_CLOCK_TOLERANCE_SECONDS = 60;
@@ -0,0 +1,2 @@
1
+ export const GOOGLE_USER_INFO_URL =
2
+ 'https://openidconnect.googleapis.com/v1/userinfo';
@@ -0,0 +1,17 @@
1
+ export const GOOGLE_WORKSPACE_EVENTS_API_BASE_URL =
2
+ 'https://workspaceevents.googleapis.com/v1';
3
+ export const MEET_TRANSCRIPT_GENERATED_EVENT_TYPE =
4
+ 'google.workspace.meet.transcript.v2.fileGenerated';
5
+ export const MEET_SMART_NOTE_GENERATED_EVENT_TYPE =
6
+ 'google.workspace.meet.smartNote.v2.fileGenerated';
7
+ export const MEET_RECORDING_GENERATED_EVENT_TYPE =
8
+ 'google.workspace.meet.recording.v2.fileGenerated';
9
+ export const MEET_EVENT_TYPES = [
10
+ MEET_TRANSCRIPT_GENERATED_EVENT_TYPE,
11
+ MEET_SMART_NOTE_GENERATED_EVENT_TYPE,
12
+ MEET_RECORDING_GENERATED_EVENT_TYPE,
13
+ ];
14
+ export const GOOGLE_WORKSPACE_EVENTS_OPERATION_MAX_POLLS = 5;
15
+ export const GOOGLE_WORKSPACE_EVENTS_OPERATION_POLL_DELAY_MILLISECONDS = 1000;
16
+ export const GOOGLE_WORKSPACE_EVENTS_SOURCE_PREFIX =
17
+ '//workspaceevents.googleapis.com/';
@@ -0,0 +1,9 @@
1
+ export const MEET_API_BASE_URL = 'https://meet.googleapis.com/v2';
2
+ export const MEET_REQUEST_MAX_ATTEMPTS = 4;
3
+ export const MEET_REQUEST_RETRY_BASE_DELAY_MILLISECONDS = 1_000;
4
+ export const MEET_REQUEST_RETRY_BUDGET_MILLISECONDS = 8_000;
5
+ export const MEET_RETRYABLE_STATUSES = new Set([
6
+ 429, 500, 502, 503, 504,
7
+ ]);
8
+ export const MEET_LIST_PAGE_SIZE = 100;
9
+ export const MAX_MEET_LIST_PAGES = 50;
@@ -0,0 +1,3 @@
1
+ export const MEET_UNKNOWN_SPEAKER_NAME = 'Unknown speaker';
2
+ export const MEET_SUMMARY_UNAVAILABLE_HEADING = '## Summary unavailable';
3
+ export const MEET_CALL_SUMMARY_JOB_RETRY_LIMIT = 2;
@@ -0,0 +1,7 @@
1
+ export const MILLISECONDS_PER_HOUR = 60 * 60 * 1_000;
2
+ export const MILLISECONDS_PER_DAY = 24 * MILLISECONDS_PER_HOUR;
3
+ // A call still running at one daily run can have started 24 hours earlier, and the next run is up to 25 hours later.
4
+ export const MEET_RECENT_CONFERENCE_WINDOW_MILLISECONDS =
5
+ 50 * MILLISECONDS_PER_HOUR;
6
+ export const MEET_IMPORT_JOB_BATCH_SIZE = 200;
7
+ export const MEET_DAILY_JOB_SPREAD_MILLISECONDS = MILLISECONDS_PER_HOUR;
@@ -0,0 +1,7 @@
1
+ export const MEET_RECORDING_MAX_FILE_SIZE_BYTES = 500 * 1024 * 1024;
2
+ // Leaves a minute of the 15-minute function limit to save the video.
3
+ export const MEET_RECORDING_TRANSFER_TIMEOUT_MILLISECONDS =
4
+ 14 * 60 * 1_000;
5
+ export const MEET_RECORDING_FILE_NAME = 'video.mp4';
6
+ export const MEET_RECORDING_FILE_FOLDER = 'FilesField';
7
+ export const MEET_RECORDING_IMPORT_JOB_RETRY_LIMIT = 2;
@@ -0,0 +1,2 @@
1
+ export const RESTRICTED_FIELD_PLACEHOLDER =
2
+ 'FIELD_RESTRICTED_ADDITIONAL_PERMISSIONS_REQUIRED';