@particle-academy/google-meet-js 0.0.0 → 0.3.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.
@@ -0,0 +1,31 @@
1
+ import { NodeKindDefinition, NodeExecutor } from '@particle-academy/fancy-flow/engine';
2
+
3
+ /**
4
+ * GENERATED FILE — do not edit.
5
+ *
6
+ * Emitted from provider/actions/ + triggers/ by weaver's generator.
7
+ * A hand-edit here is destroyed by the next protocol sync, which is worse than
8
+ * being rejected, because it works until it silently does not. Fix
9
+ * provider/actions/ + triggers/ (or weaver's template/) and regenerate:
10
+ *
11
+ * npm run provider -- google_meet
12
+ */
13
+ /**
14
+ * Google Meet's node kinds with their TypeScript executors attached — for
15
+ * hosts that EXECUTE on TS.
16
+ *
17
+ * The authoring surface in @particle-academy/google-meet-ui carries no
18
+ * executor: the editor is React on every host, so a PHP or Python project
19
+ * installs the ui package and never this one.
20
+ */
21
+
22
+ declare const googleMeetConferenceRecordListExecutor: NodeExecutor;
23
+ declare const googleMeetParticipantListExecutor: NodeExecutor;
24
+ declare const googleMeetSpaceCreateExecutor: NodeExecutor;
25
+ declare const googleMeetSpaceGetExecutor: NodeExecutor;
26
+ declare const googleMeetTranscriptEntryListExecutor: NodeExecutor;
27
+ declare const googleMeetTranscriptListExecutor: NodeExecutor;
28
+ /** The kinds a TypeScript host registers. */
29
+ declare const GOOGLE_MEET_RUNNABLE_KINDS: NodeKindDefinition[];
30
+
31
+ export { GOOGLE_MEET_RUNNABLE_KINDS, googleMeetConferenceRecordListExecutor, googleMeetParticipantListExecutor, googleMeetSpaceCreateExecutor, googleMeetSpaceGetExecutor, googleMeetTranscriptEntryListExecutor, googleMeetTranscriptListExecutor };
package/dist/flow.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import { NodeKindDefinition, NodeExecutor } from '@particle-academy/fancy-flow/engine';
2
+
3
+ /**
4
+ * GENERATED FILE — do not edit.
5
+ *
6
+ * Emitted from provider/actions/ + triggers/ by weaver's generator.
7
+ * A hand-edit here is destroyed by the next protocol sync, which is worse than
8
+ * being rejected, because it works until it silently does not. Fix
9
+ * provider/actions/ + triggers/ (or weaver's template/) and regenerate:
10
+ *
11
+ * npm run provider -- google_meet
12
+ */
13
+ /**
14
+ * Google Meet's node kinds with their TypeScript executors attached — for
15
+ * hosts that EXECUTE on TS.
16
+ *
17
+ * The authoring surface in @particle-academy/google-meet-ui carries no
18
+ * executor: the editor is React on every host, so a PHP or Python project
19
+ * installs the ui package and never this one.
20
+ */
21
+
22
+ declare const googleMeetConferenceRecordListExecutor: NodeExecutor;
23
+ declare const googleMeetParticipantListExecutor: NodeExecutor;
24
+ declare const googleMeetSpaceCreateExecutor: NodeExecutor;
25
+ declare const googleMeetSpaceGetExecutor: NodeExecutor;
26
+ declare const googleMeetTranscriptEntryListExecutor: NodeExecutor;
27
+ declare const googleMeetTranscriptListExecutor: NodeExecutor;
28
+ /** The kinds a TypeScript host registers. */
29
+ declare const GOOGLE_MEET_RUNNABLE_KINDS: NodeKindDefinition[];
30
+
31
+ export { GOOGLE_MEET_RUNNABLE_KINDS, googleMeetConferenceRecordListExecutor, googleMeetParticipantListExecutor, googleMeetSpaceCreateExecutor, googleMeetSpaceGetExecutor, googleMeetTranscriptEntryListExecutor, googleMeetTranscriptListExecutor };
package/dist/flow.js ADDED
@@ -0,0 +1,100 @@
1
+ import { googleMeetConferenceRecordList, googleMeetParticipantList, googleMeetSpaceCreate, googleMeetSpaceGet, googleMeetTranscriptEntryList, googleMeetTranscriptList } from './chunk-FZZBTOL7.js';
2
+ import '@particle-academy/fancy-connector-core';
3
+ import { googleMeetConferenceRecordListKind, googleMeetParticipantListKind, googleMeetSpaceCreateKind, googleMeetSpaceGetKind, googleMeetTranscriptEntryListKind, googleMeetTranscriptListKind } from '@particle-academy/google-meet-ui';
4
+
5
+ var googleMeetConferenceRecordListExecutor = async (ctx) => {
6
+ const config = ctx.node.data?.config ?? {};
7
+ const result = await googleMeetConferenceRecordList({
8
+ config,
9
+ input: ctx.inputs?.in
10
+ });
11
+ ctx.emit({
12
+ type: "log",
13
+ level: "info",
14
+ nodeId: ctx.node.id,
15
+ message: `google_meet conference_record_list ${result.data?.id} (${result.mode})`
16
+ });
17
+ return { __port: "out", value: result };
18
+ };
19
+ var googleMeetParticipantListExecutor = async (ctx) => {
20
+ const config = ctx.node.data?.config ?? {};
21
+ const result = await googleMeetParticipantList({
22
+ config,
23
+ input: ctx.inputs?.in
24
+ });
25
+ ctx.emit({
26
+ type: "log",
27
+ level: "info",
28
+ nodeId: ctx.node.id,
29
+ message: `google_meet participant_list ${result.data?.id} (${result.mode})`
30
+ });
31
+ return { __port: "out", value: result };
32
+ };
33
+ var googleMeetSpaceCreateExecutor = async (ctx) => {
34
+ const config = ctx.node.data?.config ?? {};
35
+ const result = await googleMeetSpaceCreate({
36
+ config,
37
+ input: ctx.inputs?.in
38
+ });
39
+ ctx.emit({
40
+ type: "log",
41
+ level: "info",
42
+ nodeId: ctx.node.id,
43
+ message: `google_meet space_create ${result.data?.id} (${result.mode})`
44
+ });
45
+ return { __port: "out", value: result };
46
+ };
47
+ var googleMeetSpaceGetExecutor = async (ctx) => {
48
+ const config = ctx.node.data?.config ?? {};
49
+ const result = await googleMeetSpaceGet({
50
+ config,
51
+ input: ctx.inputs?.in
52
+ });
53
+ ctx.emit({
54
+ type: "log",
55
+ level: "info",
56
+ nodeId: ctx.node.id,
57
+ message: `google_meet space_get ${result.data?.id} (${result.mode})`
58
+ });
59
+ return { __port: "out", value: result };
60
+ };
61
+ var googleMeetTranscriptEntryListExecutor = async (ctx) => {
62
+ const config = ctx.node.data?.config ?? {};
63
+ const result = await googleMeetTranscriptEntryList({
64
+ config,
65
+ input: ctx.inputs?.in
66
+ });
67
+ ctx.emit({
68
+ type: "log",
69
+ level: "info",
70
+ nodeId: ctx.node.id,
71
+ message: `google_meet transcript_entry_list ${result.data?.id} (${result.mode})`
72
+ });
73
+ return { __port: "out", value: result };
74
+ };
75
+ var googleMeetTranscriptListExecutor = async (ctx) => {
76
+ const config = ctx.node.data?.config ?? {};
77
+ const result = await googleMeetTranscriptList({
78
+ config,
79
+ input: ctx.inputs?.in
80
+ });
81
+ ctx.emit({
82
+ type: "log",
83
+ level: "info",
84
+ nodeId: ctx.node.id,
85
+ message: `google_meet transcript_list ${result.data?.id} (${result.mode})`
86
+ });
87
+ return { __port: "out", value: result };
88
+ };
89
+ var GOOGLE_MEET_RUNNABLE_KINDS = [
90
+ { ...googleMeetConferenceRecordListKind, executor: googleMeetConferenceRecordListExecutor },
91
+ { ...googleMeetParticipantListKind, executor: googleMeetParticipantListExecutor },
92
+ { ...googleMeetSpaceCreateKind, executor: googleMeetSpaceCreateExecutor },
93
+ { ...googleMeetSpaceGetKind, executor: googleMeetSpaceGetExecutor },
94
+ { ...googleMeetTranscriptEntryListKind, executor: googleMeetTranscriptEntryListExecutor },
95
+ { ...googleMeetTranscriptListKind, executor: googleMeetTranscriptListExecutor }
96
+ ];
97
+
98
+ export { GOOGLE_MEET_RUNNABLE_KINDS, googleMeetConferenceRecordListExecutor, googleMeetParticipantListExecutor, googleMeetSpaceCreateExecutor, googleMeetSpaceGetExecutor, googleMeetTranscriptEntryListExecutor, googleMeetTranscriptListExecutor };
99
+ //# sourceMappingURL=flow.js.map
100
+ //# sourceMappingURL=flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flow.ts"],"names":[],"mappings":";;;;AA8CO,IAAM,sCAAA,GAAuD,OAAO,GAAA,KAAQ;AACjF,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,8BAAA,CAA+B;AAAA,IAClD,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,EAAO,MAAA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ERATED FILE — do not edit.\n *\n * Emitted from provider/actions/ + triggers/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/ + triggers/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * Google Meet's node kinds with their TypeScript executors attached — for\n * hosts that EXECUTE on TS.\n *\n * The authoring surface in @particle-academy/google-meet-ui carries no\n * executor: the editor is React on every host, so a PHP or Python project\n * installs the ui package and never this one.\n */\n\nimport type { NodeExecutor, NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport {\n idempotencyKeyFor,\n NO_IDEMPOTENCY_KEY_WARNING,\n resolveConnection,\n triggerEvent,\n type RequestedMode,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"./service.js\";\n\nimport {\n googleMeetConferenceRecordListKind,\n googleMeetParticipantListKind,\n googleMeetSpaceCreateKind,\n googleMeetSpaceGetKind,\n googleMeetTranscriptEntryListKind,\n googleMeetTranscriptListKind,\n} from \"@particle-academy/google-meet-ui\";\n\nimport { googleMeetConferenceRecordList } from \"./actions/conference-record-list.js\";\nimport { googleMeetParticipantList } from \"./actions/participant-list.js\";\nimport { googleMeetSpaceCreate } from \"./actions/space-create.js\";\nimport { googleMeetSpaceGet } from \"./actions/space-get.js\";\nimport { googleMeetTranscriptEntryList } from \"./actions/transcript-entry-list.js\";\nimport { googleMeetTranscriptList } from \"./actions/transcript-list.js\";\n\nexport const googleMeetConferenceRecordListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await googleMeetConferenceRecordList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `google_meet conference_record_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const googleMeetParticipantListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await googleMeetParticipantList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `google_meet participant_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const googleMeetSpaceCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await googleMeetSpaceCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `google_meet space_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const googleMeetSpaceGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await googleMeetSpaceGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `google_meet space_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const googleMeetTranscriptEntryListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await googleMeetTranscriptEntryList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `google_meet transcript_entry_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const googleMeetTranscriptListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await googleMeetTranscriptList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `google_meet transcript_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\n/** The kinds a TypeScript host registers. */\nexport const GOOGLE_MEET_RUNNABLE_KINDS: NodeKindDefinition[] = [\n { ...googleMeetConferenceRecordListKind, executor: googleMeetConferenceRecordListExecutor },\n { ...googleMeetParticipantListKind, executor: googleMeetParticipantListExecutor },\n { ...googleMeetSpaceCreateKind, executor: googleMeetSpaceCreateExecutor },\n { ...googleMeetSpaceGetKind, executor: googleMeetSpaceGetExecutor },\n { ...googleMeetTranscriptEntryListKind, executor: googleMeetTranscriptEntryListExecutor },\n { ...googleMeetTranscriptListKind, executor: googleMeetTranscriptListExecutor },\n];\n"]}
package/dist/index.cjs ADDED
@@ -0,0 +1,338 @@
1
+ 'use strict';
2
+
3
+ var fancyConnectorCore = require('@particle-academy/fancy-connector-core');
4
+
5
+ // src/faker.ts
6
+ function fakeConferenceRecordList({ config, fake }) {
7
+ return {
8
+ "conferenceRecords": [
9
+ {
10
+ "name": fake.id("conferenceRecords"),
11
+ "startTime": "2026-09-15T14:00:00.000Z",
12
+ "endTime": "2026-09-15T14:40:12.000Z",
13
+ "expireTime": "2026-10-15T14:40:12.000Z",
14
+ "space": "spaces/abc123def456"
15
+ }
16
+ ]
17
+ };
18
+ }
19
+ function fakeParticipantList({ config, fake }) {
20
+ return {
21
+ "participants": [
22
+ {
23
+ "name": fake.id("participants"),
24
+ "earliestStartTime": "2026-09-15T14:00:05.000Z",
25
+ "latestEndTime": "2026-09-15T14:40:00.000Z",
26
+ "signedinUser": {
27
+ "user": "users/ada",
28
+ "displayName": "Ada Lovelace"
29
+ }
30
+ },
31
+ {
32
+ "name": fake.id("participants"),
33
+ "earliestStartTime": "2026-09-15T14:01:30.000Z",
34
+ "latestEndTime": "2026-09-15T14:38:00.000Z",
35
+ "anonymousUser": {
36
+ "displayName": "Guest"
37
+ }
38
+ },
39
+ {
40
+ "name": fake.id("participants"),
41
+ "earliestStartTime": "2026-09-15T14:02:00.000Z",
42
+ "latestEndTime": "2026-09-15T14:15:00.000Z",
43
+ "phoneUser": {
44
+ "displayName": "+1 555-***-0100"
45
+ }
46
+ }
47
+ ]
48
+ };
49
+ }
50
+ function fakeSpaceCreate({ config, fake }) {
51
+ return {
52
+ "name": fake.id("spaces"),
53
+ "meetingUri": "https://meet.google.com/abc-defg-hij",
54
+ "meetingCode": "abc-defg-hij",
55
+ "config": {
56
+ "accessType": config.accessType !== void 0 && config.accessType !== null && config.accessType !== "" ? String(config.accessType) : "OPEN",
57
+ "entryPointAccess": config.entryPointAccess !== void 0 && config.entryPointAccess !== null && config.entryPointAccess !== "" ? String(config.entryPointAccess) : "ALL"
58
+ }
59
+ };
60
+ }
61
+ function fakeSpaceGet({ config, fake }) {
62
+ return {
63
+ "name": config.spaceId !== void 0 && config.spaceId !== null && config.spaceId !== "" ? String(config.spaceId) : fake.id("spaces"),
64
+ "meetingUri": "https://meet.google.com/abc-defg-hij",
65
+ "meetingCode": "abc-defg-hij",
66
+ "config": {
67
+ "accessType": "TRUSTED",
68
+ "entryPointAccess": "ALL"
69
+ },
70
+ "activeConference": {
71
+ "conferenceRecord": fake.id("conferenceRecords")
72
+ }
73
+ };
74
+ }
75
+ function fakeTranscriptEntryList({ config, fake }) {
76
+ return {
77
+ "transcriptEntries": [
78
+ {
79
+ "name": fake.id("entries"),
80
+ "participant": "participants/p1",
81
+ "text": "Let's start with the roadmap.",
82
+ "languageCode": "en-US",
83
+ "startTime": "2026-09-15T14:00:12.000Z",
84
+ "endTime": "2026-09-15T14:00:15.000Z"
85
+ },
86
+ {
87
+ "name": fake.id("entries"),
88
+ "participant": "participants/p2",
89
+ "text": "Sounds good, I'll share my screen.",
90
+ "languageCode": "en-US",
91
+ "startTime": "2026-09-15T14:00:16.000Z",
92
+ "endTime": "2026-09-15T14:00:19.000Z"
93
+ }
94
+ ]
95
+ };
96
+ }
97
+ function fakeTranscriptList({ config, fake }) {
98
+ return {
99
+ "transcripts": [
100
+ {
101
+ "name": fake.id("transcripts"),
102
+ "state": "ENDED",
103
+ "startTime": "2026-09-15T14:00:10.000Z",
104
+ "endTime": "2026-09-15T14:40:05.000Z",
105
+ "docsDestination": {
106
+ "document": fake.id("doc"),
107
+ "exportUri": "https://docs.google.com/document/d/abcdef123456"
108
+ }
109
+ }
110
+ ]
111
+ };
112
+ }
113
+ var googleMeetFaker = (operation, request) => {
114
+ switch (operation) {
115
+ case "conference_record_list":
116
+ return fakeConferenceRecordList(request);
117
+ case "participant_list":
118
+ return fakeParticipantList(request);
119
+ case "space_create":
120
+ return fakeSpaceCreate(request);
121
+ case "space_get":
122
+ return fakeSpaceGet(request);
123
+ case "transcript_entry_list":
124
+ return fakeTranscriptEntryList(request);
125
+ case "transcript_list":
126
+ return fakeTranscriptList(request);
127
+ default:
128
+ throw new Error(
129
+ `google_meet: no fake response is defined for "${operation}". Add a fixture under provider/fixtures/ and regenerate \u2014 a connector without a faker cannot be developed against, tested, or demonstrated.`
130
+ );
131
+ }
132
+ };
133
+
134
+ // src/service.ts
135
+ var CONNECTOR_API_VERSION = 1;
136
+ var GOOGLE_MEET_BASE_URLS = {
137
+ "live": "https://meet.googleapis.com/v2"
138
+ };
139
+ var GOOGLE_MEET_REQUIRES = [
140
+ "accessToken"
141
+ ];
142
+ function googleMeetAuthorize(credentials, request, _mode) {
143
+ request.headers.Authorization = `Bearer ${credentials.accessToken ?? ""}`;
144
+ }
145
+ var GOOGLE_MEET = {
146
+ service: "google_meet",
147
+ title: "Google Meet",
148
+ sandbox: "unverified",
149
+ baseUrls: { ...GOOGLE_MEET_BASE_URLS },
150
+ requires: [...GOOGLE_MEET_REQUIRES],
151
+ authorize: googleMeetAuthorize,
152
+ faker: googleMeetFaker
153
+ };
154
+ var CONFERENCE_RECORD_LIST_OPERATION = "conference_record_list";
155
+ async function googleMeetConferenceRecordList(options) {
156
+ const config = options.config ?? {};
157
+ {
158
+ const n = Number(config.pageSize);
159
+ const given = config.pageSize !== void 0 && config.pageSize !== null && config.pageSize !== "";
160
+ if (given && !(Number.isInteger(n) && n >= 1 && n <= 100)) {
161
+ throw new Error(
162
+ `conference_record_list: "pageSize" must be a integer, got ${JSON.stringify(config.pageSize)}.`
163
+ );
164
+ }
165
+ }
166
+ return fancyConnectorCore.callConnector(GOOGLE_MEET, {
167
+ operation: CONFERENCE_RECORD_LIST_OPERATION,
168
+ config,
169
+ input: options.input,
170
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
171
+ ...options.mode === void 0 ? {} : { mode: options.mode },
172
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
173
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
174
+ ...options.transport === void 0 ? {} : { transport: options.transport },
175
+ request: {
176
+ method: "GET",
177
+ path: "/conferenceRecords",
178
+ query: {
179
+ ...config.filter !== void 0 && config.filter !== null && config.filter !== "" ? { "filter": String(config.filter) } : {},
180
+ ...config.pageSize !== void 0 && config.pageSize !== null && config.pageSize !== "" ? { "pageSize": Math.trunc(Number(config.pageSize)) } : {},
181
+ ...config.pageToken !== void 0 && config.pageToken !== null && config.pageToken !== "" ? { "pageToken": String(config.pageToken) } : {}
182
+ }
183
+ }
184
+ });
185
+ }
186
+ var PARTICIPANT_LIST_OPERATION = "participant_list";
187
+ async function googleMeetParticipantList(options) {
188
+ const config = options.config ?? {};
189
+ if (config.conferenceRecordId === void 0 || config.conferenceRecordId === null || config.conferenceRecordId === "") {
190
+ throw new Error(`participant_list: "conferenceRecordId" is required (Conference record ID).`);
191
+ }
192
+ return fancyConnectorCore.callConnector(GOOGLE_MEET, {
193
+ operation: PARTICIPANT_LIST_OPERATION,
194
+ config,
195
+ input: options.input,
196
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
197
+ ...options.mode === void 0 ? {} : { mode: options.mode },
198
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
199
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
200
+ ...options.transport === void 0 ? {} : { transport: options.transport },
201
+ request: {
202
+ method: "GET",
203
+ path: `/conferenceRecords/${encodeURIComponent(String(config.conferenceRecordId))}/participants`,
204
+ query: {
205
+ ...config.pageToken !== void 0 && config.pageToken !== null && config.pageToken !== "" ? { "pageToken": String(config.pageToken) } : {}
206
+ }
207
+ }
208
+ });
209
+ }
210
+ var SPACE_CREATE_OPERATION = "space_create";
211
+ async function googleMeetSpaceCreate(options) {
212
+ const config = options.config ?? {};
213
+ return fancyConnectorCore.callConnector(GOOGLE_MEET, {
214
+ operation: SPACE_CREATE_OPERATION,
215
+ config,
216
+ input: options.input,
217
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
218
+ ...options.mode === void 0 ? {} : { mode: options.mode },
219
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
220
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
221
+ ...options.transport === void 0 ? {} : { transport: options.transport },
222
+ request: {
223
+ method: "POST",
224
+ path: "/spaces",
225
+ json: nestFields({
226
+ ...config.accessType !== void 0 && config.accessType !== null && config.accessType !== "" ? { "config.accessType": String(config.accessType) } : {},
227
+ ...config.entryPointAccess !== void 0 && config.entryPointAccess !== null && config.entryPointAccess !== "" ? { "config.entryPointAccess": String(config.entryPointAccess) } : {}
228
+ })
229
+ }
230
+ });
231
+ }
232
+ function nestFields(flat) {
233
+ const out = {};
234
+ for (const [path, value] of Object.entries(flat)) {
235
+ const parts = path.split(".");
236
+ let node = out;
237
+ while (parts.length > 1) {
238
+ const key = parts.shift();
239
+ const wantsArray = /^\d+$/.test(parts[0] ?? "");
240
+ if (typeof node[key] !== "object" || node[key] === null) node[key] = wantsArray ? [] : {};
241
+ node = node[key];
242
+ }
243
+ node[parts[0]] = value;
244
+ }
245
+ return out;
246
+ }
247
+ var SPACE_GET_OPERATION = "space_get";
248
+ async function googleMeetSpaceGet(options) {
249
+ const config = options.config ?? {};
250
+ if (config.spaceId === void 0 || config.spaceId === null || config.spaceId === "") {
251
+ throw new Error(`space_get: "spaceId" is required (Space ID).`);
252
+ }
253
+ return fancyConnectorCore.callConnector(GOOGLE_MEET, {
254
+ operation: SPACE_GET_OPERATION,
255
+ config,
256
+ input: options.input,
257
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
258
+ ...options.mode === void 0 ? {} : { mode: options.mode },
259
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
260
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
261
+ ...options.transport === void 0 ? {} : { transport: options.transport },
262
+ request: {
263
+ method: "GET",
264
+ path: `/spaces/${encodeURIComponent(String(config.spaceId))}`,
265
+ query: {}
266
+ }
267
+ });
268
+ }
269
+ var TRANSCRIPT_ENTRY_LIST_OPERATION = "transcript_entry_list";
270
+ async function googleMeetTranscriptEntryList(options) {
271
+ const config = options.config ?? {};
272
+ if (config.conferenceRecordId === void 0 || config.conferenceRecordId === null || config.conferenceRecordId === "") {
273
+ throw new Error(`transcript_entry_list: "conferenceRecordId" is required (Conference record ID).`);
274
+ }
275
+ if (config.transcriptId === void 0 || config.transcriptId === null || config.transcriptId === "") {
276
+ throw new Error(`transcript_entry_list: "transcriptId" is required (Transcript ID).`);
277
+ }
278
+ return fancyConnectorCore.callConnector(GOOGLE_MEET, {
279
+ operation: TRANSCRIPT_ENTRY_LIST_OPERATION,
280
+ config,
281
+ input: options.input,
282
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
283
+ ...options.mode === void 0 ? {} : { mode: options.mode },
284
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
285
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
286
+ ...options.transport === void 0 ? {} : { transport: options.transport },
287
+ request: {
288
+ method: "GET",
289
+ path: `/conferenceRecords/${encodeURIComponent(String(config.conferenceRecordId))}/transcripts/${encodeURIComponent(String(config.transcriptId))}/entries`,
290
+ query: {
291
+ ...config.pageToken !== void 0 && config.pageToken !== null && config.pageToken !== "" ? { "pageToken": String(config.pageToken) } : {}
292
+ }
293
+ }
294
+ });
295
+ }
296
+ var TRANSCRIPT_LIST_OPERATION = "transcript_list";
297
+ async function googleMeetTranscriptList(options) {
298
+ const config = options.config ?? {};
299
+ if (config.conferenceRecordId === void 0 || config.conferenceRecordId === null || config.conferenceRecordId === "") {
300
+ throw new Error(`transcript_list: "conferenceRecordId" is required (Conference record ID).`);
301
+ }
302
+ return fancyConnectorCore.callConnector(GOOGLE_MEET, {
303
+ operation: TRANSCRIPT_LIST_OPERATION,
304
+ config,
305
+ input: options.input,
306
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
307
+ ...options.mode === void 0 ? {} : { mode: options.mode },
308
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
309
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
310
+ ...options.transport === void 0 ? {} : { transport: options.transport },
311
+ request: {
312
+ method: "GET",
313
+ path: `/conferenceRecords/${encodeURIComponent(String(config.conferenceRecordId))}/transcripts`,
314
+ query: {}
315
+ }
316
+ });
317
+ }
318
+
319
+ exports.CONFERENCE_RECORD_LIST_OPERATION = CONFERENCE_RECORD_LIST_OPERATION;
320
+ exports.CONNECTOR_API_VERSION = CONNECTOR_API_VERSION;
321
+ exports.GOOGLE_MEET = GOOGLE_MEET;
322
+ exports.GOOGLE_MEET_BASE_URLS = GOOGLE_MEET_BASE_URLS;
323
+ exports.GOOGLE_MEET_REQUIRES = GOOGLE_MEET_REQUIRES;
324
+ exports.PARTICIPANT_LIST_OPERATION = PARTICIPANT_LIST_OPERATION;
325
+ exports.SPACE_CREATE_OPERATION = SPACE_CREATE_OPERATION;
326
+ exports.SPACE_GET_OPERATION = SPACE_GET_OPERATION;
327
+ exports.TRANSCRIPT_ENTRY_LIST_OPERATION = TRANSCRIPT_ENTRY_LIST_OPERATION;
328
+ exports.TRANSCRIPT_LIST_OPERATION = TRANSCRIPT_LIST_OPERATION;
329
+ exports.googleMeetAuthorize = googleMeetAuthorize;
330
+ exports.googleMeetConferenceRecordList = googleMeetConferenceRecordList;
331
+ exports.googleMeetFaker = googleMeetFaker;
332
+ exports.googleMeetParticipantList = googleMeetParticipantList;
333
+ exports.googleMeetSpaceCreate = googleMeetSpaceCreate;
334
+ exports.googleMeetSpaceGet = googleMeetSpaceGet;
335
+ exports.googleMeetTranscriptEntryList = googleMeetTranscriptEntryList;
336
+ exports.googleMeetTranscriptList = googleMeetTranscriptList;
337
+ //# sourceMappingURL=index.cjs.map
338
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/faker.ts","../src/service.ts","../src/actions/conference-record-list.ts","../src/actions/participant-list.ts","../src/actions/space-create.ts","../src/actions/space-get.ts","../src/actions/transcript-entry-list.ts","../src/actions/transcript-list.ts"],"names":["callConnector"],"mappings":";;;;;AAyBA,SAAS,wBAAA,CAAyB,EAAE,MAAA,EAAQ,IAAA,EAAK,EAAyB;AACxE,EAAA,OAAO;AAAA,IACL,mBAAA,EAAqB;AAAA,MACnB;AAAA,QACE,MAAA,EAAQ,IAAA,CAAK,EAAA,CAAG,mBAAmB,CAAA;AAAA,QACnC,WAAA,EAAa,0BAAA;AAAA,QACb,SAAA,EAAW,0BAAA;AAAA,QACX,YAAA,EAAc,0BAAA;AAAA,QACd,OAAA,EAAS;AAAA;AACX;AACF,GACF;AACF;AAEA,SAAS,mBAAA,CAAoB,EAAE,MAAA,EAAQ,IAAA,EAAK,EAAyB;AACnE,EAAA,OAAO;AAAA,IACL,cAAA,EAAgB;AAAA,MACd;AAAA,QACE,MAAA,EAAQ,IAAA,CAAK,EAAA,CAAG,cAAc,CAAA;AAAA,QAC9B,mBAAA,EAAqB,0BAAA;AAAA,QACrB,eAAA,EAAiB,0BAAA;AAAA,QACjB,cAAA,EAAgB;AAAA,UACd,MAAA,EAAQ,WAAA;AAAA,UACR,aAAA,EAAe;AAAA;AACjB,OACF;AAAA,MACA;AAAA,QACE,MAAA,EAAQ,IAAA,CAAK,EAAA,CAAG,cAAc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AQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAAY,EAAC,GAAI,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACnF,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,QAAQ,SAAA,KAAc,MAAA,GAAY,EAAC,GAAI,EAAE,SAAA,EAAW,OAAA,CAAQ,SAAA,EAAU;AAAA,IAC1E,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,KAAA;AAAA,MACR,MAAM,CAAA,mBAAA,EAAsB,kBAAA,CAAmB,OAAO,MAAA,CAAO,kBAAkB,CAAC,CAAC,CAAA,YAAA,CAAA;AAAA,MACjF,OAAO;AAAC;AACV,GACD,CAAA;AACH","file":"index.cjs","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/fixtures/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/fixtures/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * The Google Meet faker.\n *\n * Shapes, not behaviour: the goal is that a downstream node sees the field\n * NAMES Google Meet actually publishes, so an author can wire {{ $json.data.id\n * }} against a fake and have it keep working against the real thing.\n *\n * Deterministic — same inputs, same output. A faker returning a fresh uuid\n * every call cannot be asserted on, so its fixtures degrade to \"it did not\n * throw\", which is the assertion that catches nothing.\n */\n\nimport type { ConnectorFaker, FakeRequest } from \"@particle-academy/fancy-connector-core\";\n\nfunction fakeConferenceRecordList({ config, fake }: FakeRequest): unknown {\n return {\n \"conferenceRecords\": [\n {\n \"name\": fake.id(\"conferenceRecords\"),\n \"startTime\": \"2026-09-15T14:00:00.000Z\",\n \"endTime\": \"2026-09-15T14:40:12.000Z\",\n \"expireTime\": \"2026-10-15T14:40:12.000Z\",\n \"space\": \"spaces/abc123def456\",\n },\n ],\n };\n}\n\nfunction fakeParticipantList({ config, fake }: FakeRequest): unknown {\n return {\n \"participants\": [\n {\n \"name\": fake.id(\"participants\"),\n \"earliestStartTime\": \"2026-09-15T14:00:05.000Z\",\n \"latestEndTime\": \"2026-09-15T14:40:00.000Z\",\n \"signedinUser\": {\n \"user\": \"users/ada\",\n \"displayName\": \"Ada Lovelace\",\n },\n },\n {\n \"name\": fake.id(\"participants\"),\n \"earliestStartTime\": \"2026-09-15T14:01:30.000Z\",\n \"latestEndTime\": \"2026-09-15T14:38:00.000Z\",\n \"anonymousUser\": {\n \"displayName\": \"Guest\",\n },\n },\n {\n \"name\": fake.id(\"participants\"),\n \"earliestStartTime\": \"2026-09-15T14:02:00.000Z\",\n \"latestEndTime\": \"2026-09-15T14:15:00.000Z\",\n \"phoneUser\": {\n \"displayName\": \"+1 555-***-0100\",\n },\n },\n ],\n };\n}\n\nfunction fakeSpaceCreate({ config, fake }: FakeRequest): unknown {\n return {\n \"name\": fake.id(\"spaces\"),\n \"meetingUri\": \"https://meet.google.com/abc-defg-hij\",\n \"meetingCode\": \"abc-defg-hij\",\n \"config\": {\n \"accessType\": (config.accessType !== undefined && config.accessType !== null && config.accessType !== \"\" ? String(config.accessType) : \"OPEN\"),\n \"entryPointAccess\": (config.entryPointAccess !== undefined && config.entryPointAccess !== null && config.entryPointAccess !== \"\" ? String(config.entryPointAccess) : \"ALL\"),\n },\n };\n}\n\nfunction fakeSpaceGet({ config, fake }: FakeRequest): unknown {\n return {\n \"name\": (config.spaceId !== undefined && config.spaceId !== null && config.spaceId !== \"\" ? String(config.spaceId) : fake.id(\"spaces\")),\n \"meetingUri\": \"https://meet.google.com/abc-defg-hij\",\n \"meetingCode\": \"abc-defg-hij\",\n \"config\": {\n \"accessType\": \"TRUSTED\",\n \"entryPointAccess\": \"ALL\",\n },\n \"activeConference\": {\n \"conferenceRecord\": fake.id(\"conferenceRecords\"),\n },\n };\n}\n\nfunction fakeTranscriptEntryList({ config, fake }: FakeRequest): unknown {\n return {\n \"transcriptEntries\": [\n {\n \"name\": fake.id(\"entries\"),\n \"participant\": \"participants/p1\",\n \"text\": \"Let's start with the roadmap.\",\n \"languageCode\": \"en-US\",\n \"startTime\": \"2026-09-15T14:00:12.000Z\",\n \"endTime\": \"2026-09-15T14:00:15.000Z\",\n },\n {\n \"name\": fake.id(\"entries\"),\n \"participant\": \"participants/p2\",\n \"text\": \"Sounds good, I'll share my screen.\",\n \"languageCode\": \"en-US\",\n \"startTime\": \"2026-09-15T14:00:16.000Z\",\n \"endTime\": \"2026-09-15T14:00:19.000Z\",\n },\n ],\n };\n}\n\nfunction fakeTranscriptList({ config, fake }: FakeRequest): unknown {\n return {\n \"transcripts\": [\n {\n \"name\": fake.id(\"transcripts\"),\n \"state\": \"ENDED\",\n \"startTime\": \"2026-09-15T14:00:10.000Z\",\n \"endTime\": \"2026-09-15T14:40:05.000Z\",\n \"docsDestination\": {\n \"document\": fake.id(\"doc\"),\n \"exportUri\": \"https://docs.google.com/document/d/abcdef123456\",\n },\n },\n ],\n };\n}\n\nexport const googleMeetFaker: ConnectorFaker = (operation, request) => {\n switch (operation) {\n case \"conference_record_list\":\n return fakeConferenceRecordList(request);\n\n case \"participant_list\":\n return fakeParticipantList(request);\n\n case \"space_create\":\n return fakeSpaceCreate(request);\n\n case \"space_get\":\n return fakeSpaceGet(request);\n\n case \"transcript_entry_list\":\n return fakeTranscriptEntryList(request);\n\n case \"transcript_list\":\n return fakeTranscriptList(request);\n\n default:\n // A faker asked for an operation it has no shape for must SAY so. Making\n // something up would produce a green run whose output silently has none\n // of the fields the author is about to reference.\n throw new Error(\n `google_meet: no fake response is defined for \"${operation}\". ` +\n \"Add a fixture under provider/fixtures/ and regenerate — a connector without a faker \" +\n \"cannot be developed against, tested, or demonstrated.\",\n );\n }\n};\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * Google Meet, as one service descriptor shared by every Google Meet\n * operation.\n *\n * @particle-academy/fancy-connector-core carries what is true of ALL\n * connectors. This carries what is true of Google Meet: its base URL, its auth\n * scheme, its idempotency header, and its faker.\n *\n * ## The sandbox trap, written down where it is used\n *\n * Google Meet has no test estate distinct from a real account, as far as this\n * review found (2026-09-16) -- but it is UNVERIFIED, not confirmed.\n * space_create makes a real, joinable meeting space. Use fake mode while\n * building.\n */\n\nimport type { ConnectorMode, PreparedRequest, ServiceDescriptor } from \"@particle-academy/fancy-connector-core\";\n\nimport { googleMeetFaker } from \"./faker.js\";\n\n/**\n * The connector API version this package was GENERATED against.\n *\n * A literal, never imported. An imported constant lets an upgrade rewrite the\n * very claim it exists to detect, after which the copy agrees with itself\n * forever.\n */\nexport const CONNECTOR_API_VERSION = 1;\n\nexport const GOOGLE_MEET_BASE_URLS = {\n \"live\": \"https://meet.googleapis.com/v2\"\n} as const;\n\n/** Credential keys a remote call cannot proceed without. */\nexport const GOOGLE_MEET_REQUIRES = [\n \"accessToken\"\n] as const;\n\n/**\n * Apply Google Meet's auth scheme to an outgoing request.\n *\n * Every Meet API v2 call is a Bearer token on the Authorization header.\n *\n * The mode is passed in because for some providers auth and estate are the\n * same decision expressed in the URL; here it is unused, and saying so is\n * cheaper than wondering later whether it was forgotten.\n */\nexport function googleMeetAuthorize(\n credentials: Record<string, string | undefined>,\n request: PreparedRequest,\n _mode: ConnectorMode,\n): void {\n request.headers.Authorization = `Bearer ${credentials.accessToken ?? \"\"}`;\n}\n\n/** The Google Meet service, for the TypeScript runtime. */\nexport const GOOGLE_MEET: ServiceDescriptor = {\n service: \"google_meet\",\n title: \"Google Meet\",\n sandbox: \"unverified\",\n baseUrls: { ...GOOGLE_MEET_BASE_URLS },\n requires: [...GOOGLE_MEET_REQUIRES],\n authorize: googleMeetAuthorize,\n faker: googleMeetFaker,\n};\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/conference-record-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/conference-record-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * List past conferences, optionally filtered to one space.\n *\n * GET /conferenceRecords —\n * https://developers.google.com/workspace/meet/api/reference/rest/v2/conferenceRecords/list\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Google Meet or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"../service.js\";\n\nexport const CONFERENCE_RECORD_LIST_OPERATION = \"conference_record_list\";\n\nexport type ConferenceRecordListOptions = {\n /** The node's resolved config. Keys: filter, pageSize, pageToken. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function googleMeetConferenceRecordList(options: ConferenceRecordListOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n {\n const n = Number(config.pageSize);\n const given = config.pageSize !== undefined && config.pageSize !== null && config.pageSize !== \"\";\n if (given && !(Number.isInteger(n) && n >= 1 && n <= 100)) {\n throw new Error(\n `conference_record_list: \"pageSize\" must be a integer, got ${JSON.stringify(config.pageSize)}.`,\n );\n }\n }\n\n return callConnector(GOOGLE_MEET, {\n operation: CONFERENCE_RECORD_LIST_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: \"/conferenceRecords\",\n query: {\n ...(config.filter !== undefined && config.filter !== null && config.filter !== \"\" ? { \"filter\": String(config.filter) } : {}),\n ...(config.pageSize !== undefined && config.pageSize !== null && config.pageSize !== \"\" ? { \"pageSize\": Math.trunc(Number(config.pageSize)) } : {}),\n ...(config.pageToken !== undefined && config.pageToken !== null && config.pageToken !== \"\" ? { \"pageToken\": String(config.pageToken) } : {}),\n },\n },\n });\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/participant-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/participant-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * List who attended a conference.\n *\n * GET /conferenceRecords/{conferenceRecordId}/participants —\n * https://developers.google.com/workspace/meet/api/reference/rest/v2/conferenceRecords.participants/list\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Google Meet or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"../service.js\";\n\nexport const PARTICIPANT_LIST_OPERATION = \"participant_list\";\n\nexport type ParticipantListOptions = {\n /** The node's resolved config. Keys: conferenceRecordId, pageToken. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function googleMeetParticipantList(options: ParticipantListOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.conferenceRecordId === undefined || config.conferenceRecordId === null || config.conferenceRecordId === \"\") {\n throw new Error(`participant_list: \"conferenceRecordId\" is required (Conference record ID).`);\n }\n\n return callConnector(GOOGLE_MEET, {\n operation: PARTICIPANT_LIST_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: `/conferenceRecords/${encodeURIComponent(String(config.conferenceRecordId))}/participants`,\n query: {\n ...(config.pageToken !== undefined && config.pageToken !== null && config.pageToken !== \"\" ? { \"pageToken\": String(config.pageToken) } : {}),\n },\n },\n });\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/space-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/space-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * Create a new Google Meet space and get its join link.\n *\n * POST /spaces —\n * https://developers.google.com/workspace/meet/api/reference/rest/v2/spaces/create\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Google Meet or calls the\n * faker.\n *\n * sideEffects: unsafe-to-replay.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"../service.js\";\n\nexport const SPACE_CREATE_OPERATION = \"space_create\";\n\nexport type SpaceCreateOptions = {\n /** The node's resolved config. Keys: accessType, entryPointAccess. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function googleMeetSpaceCreate(options: SpaceCreateOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n return callConnector(GOOGLE_MEET, {\n operation: SPACE_CREATE_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"POST\",\n path: \"/spaces\",\n json: nestFields({\n ...(config.accessType !== undefined && config.accessType !== null && config.accessType !== \"\" ? { \"config.accessType\": String(config.accessType) } : {}),\n ...(config.entryPointAccess !== undefined && config.entryPointAccess !== null && config.entryPointAccess !== \"\" ? { \"config.entryPointAccess\": String(config.entryPointAccess) } : {}),\n }),\n },\n });\n}\n\n/**\n * `{\"properties.email\": x}` -> `{properties: {email: x}}`.\n *\n * A dotted `as` means NESTING, and only a JSON body can nest. The validator\n * refuses that spelling anywhere else, because in a form body it already means\n * something different — a literal dotted key.\n */\nfunction nestFields(flat: Record<string, unknown>): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n\n for (const [path, value] of Object.entries(flat)) {\n const parts = path.split(\".\");\n let node = out;\n\n while (parts.length > 1) {\n const key = parts.shift() as string;\n // A NUMERIC segment is an array index: `dateRanges.0.startDate` has to\n // become `[{startDate}]`, not `{\"0\": {startDate}}`. PHP produced the\n // array by accident (its integer-keyed arrays serialise as JSON lists)\n // and the other two produced an object, which the provider rejects as\n // the wrong type. The parity suite is what caught the disagreement.\n const wantsArray = /^\\d+$/.test(parts[0] ?? \"\");\n\n if (typeof node[key] !== \"object\" || node[key] === null) node[key] = wantsArray ? [] : {};\n node = node[key] as Record<string, unknown>;\n }\n\n node[parts[0] as string] = value;\n }\n\n return out;\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/space-get.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/space-get.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * Read a Meet space's current state, including whether a conference is active\n * right now.\n *\n * GET /spaces/{spaceId} —\n * https://developers.google.com/workspace/meet/api/reference/rest/v2/spaces/get\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Google Meet or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"../service.js\";\n\nexport const SPACE_GET_OPERATION = \"space_get\";\n\nexport type SpaceGetOptions = {\n /** The node's resolved config. Keys: spaceId. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function googleMeetSpaceGet(options: SpaceGetOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.spaceId === undefined || config.spaceId === null || config.spaceId === \"\") {\n throw new Error(`space_get: \"spaceId\" is required (Space ID).`);\n }\n\n return callConnector(GOOGLE_MEET, {\n operation: SPACE_GET_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: `/spaces/${encodeURIComponent(String(config.spaceId))}`,\n query: {},\n },\n });\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/transcript-entry-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/transcript-entry-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * Read a finished conference's transcript, one utterance per entry.\n *\n * GET\n * /conferenceRecords/{conferenceRecordId}/transcripts/{transcriptId}/entries —\n * https://developers.google.com/workspace/meet/api/reference/rest/v2/conferenceRecords.transcripts.entries/list\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Google Meet or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"../service.js\";\n\nexport const TRANSCRIPT_ENTRY_LIST_OPERATION = \"transcript_entry_list\";\n\nexport type TranscriptEntryListOptions = {\n /** The node's resolved config. Keys: conferenceRecordId, transcriptId, pageToken. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function googleMeetTranscriptEntryList(options: TranscriptEntryListOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.conferenceRecordId === undefined || config.conferenceRecordId === null || config.conferenceRecordId === \"\") {\n throw new Error(`transcript_entry_list: \"conferenceRecordId\" is required (Conference record ID).`);\n }\n\n if (config.transcriptId === undefined || config.transcriptId === null || config.transcriptId === \"\") {\n throw new Error(`transcript_entry_list: \"transcriptId\" is required (Transcript ID).`);\n }\n\n return callConnector(GOOGLE_MEET, {\n operation: TRANSCRIPT_ENTRY_LIST_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: `/conferenceRecords/${encodeURIComponent(String(config.conferenceRecordId))}/transcripts/${encodeURIComponent(String(config.transcriptId))}/entries`,\n query: {\n ...(config.pageToken !== undefined && config.pageToken !== null && config.pageToken !== \"\" ? { \"pageToken\": String(config.pageToken) } : {}),\n },\n },\n });\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/transcript-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/transcript-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_meet\n */\n\n/**\n * List a finished conference's transcripts, when transcription was on.\n *\n * GET /conferenceRecords/{conferenceRecordId}/transcripts —\n * https://developers.google.com/workspace/meet/api/reference/rest/v2/conferenceRecords.transcripts/list\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Google Meet or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { GOOGLE_MEET } from \"../service.js\";\n\nexport const TRANSCRIPT_LIST_OPERATION = \"transcript_list\";\n\nexport type TranscriptListOptions = {\n /** The node's resolved config. Keys: conferenceRecordId. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function googleMeetTranscriptList(options: TranscriptListOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.conferenceRecordId === undefined || config.conferenceRecordId === null || config.conferenceRecordId === \"\") {\n throw new Error(`transcript_list: \"conferenceRecordId\" is required (Conference record ID).`);\n }\n\n return callConnector(GOOGLE_MEET, {\n operation: TRANSCRIPT_LIST_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: `/conferenceRecords/${encodeURIComponent(String(config.conferenceRecordId))}/transcripts`,\n query: {},\n },\n });\n}\n"]}