chore: import upstream snapshot with attribution
Publish CLI Package / publish-npm (push) Waiting to run
Publish Python SDK / publish-pypi (push) Waiting to run
Publish TypeScript SDK / publish-npm (push) Waiting to run
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:20:55 +08:00
commit d25d482dc2
13754 changed files with 4996608 additions and 0 deletions
+100
View File
@@ -0,0 +1,100 @@
import {
type GoogleMeetApiSpaceResponse,
type GoogleMeetCreateSpaceParams,
type GoogleMeetCreateSpaceResponse,
MEET_API_BASE,
} from '@/tools/google_meet/types'
import type { ToolConfig } from '@/tools/types'
export const createSpaceTool: ToolConfig<
GoogleMeetCreateSpaceParams,
GoogleMeetCreateSpaceResponse
> = {
id: 'google_meet_create_space',
name: 'Google Meet Create Space',
description: 'Create a new Google Meet meeting space',
version: '1.0.0',
oauth: {
required: true,
provider: 'google-meet',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'Access token for Google Meet API',
},
accessType: {
type: 'string',
required: false,
visibility: 'user-or-llm',
description:
'Who can join the meeting without knocking: OPEN (anyone with link), TRUSTED (org members), RESTRICTED (only invited)',
},
entryPointAccess: {
type: 'string',
required: false,
visibility: 'user-or-llm',
description:
'Entry points allowed: ALL (all entry points) or CREATOR_APP_ONLY (only via app)',
},
},
request: {
url: () => `${MEET_API_BASE}/spaces`,
method: 'POST',
headers: (params: GoogleMeetCreateSpaceParams) => ({
Authorization: `Bearer ${params.accessToken}`,
'Content-Type': 'application/json',
}),
body: (params: GoogleMeetCreateSpaceParams) => {
const body: Record<string, unknown> = {}
if (params.accessType || params.entryPointAccess) {
const config: Record<string, string> = {}
if (params.accessType) config.accessType = params.accessType
if (params.entryPointAccess) config.entryPointAccess = params.entryPointAccess
body.config = config
}
return body
},
},
transformResponse: async (response: Response) => {
if (!response.ok) {
const error = await response.text().catch(() => 'Unknown error')
throw new Error(`Google Meet API error (${response.status}): ${error}`)
}
const data: GoogleMeetApiSpaceResponse = await response.json()
return {
success: true,
output: {
name: data.name,
meetingUri: data.meetingUri,
meetingCode: data.meetingCode,
accessType: data.config?.accessType ?? null,
entryPointAccess: data.config?.entryPointAccess ?? null,
},
}
},
outputs: {
name: { type: 'string', description: 'Resource name of the space (e.g., spaces/abc123)' },
meetingUri: {
type: 'string',
description: 'Meeting URL (e.g., https://meet.google.com/abc-defg-hij)',
},
meetingCode: { type: 'string', description: 'Meeting code (e.g., abc-defg-hij)' },
accessType: { type: 'string', description: 'Access type configuration', optional: true },
entryPointAccess: {
type: 'string',
description: 'Entry point access configuration',
optional: true,
},
},
}
@@ -0,0 +1,67 @@
import {
type GoogleMeetEndConferenceParams,
type GoogleMeetEndConferenceResponse,
MEET_API_BASE,
} from '@/tools/google_meet/types'
import type { ToolConfig } from '@/tools/types'
export const endConferenceTool: ToolConfig<
GoogleMeetEndConferenceParams,
GoogleMeetEndConferenceResponse
> = {
id: 'google_meet_end_conference',
name: 'Google Meet End Conference',
description: 'End the active conference in a Google Meet space',
version: '1.0.0',
oauth: {
required: true,
provider: 'google-meet',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'Access token for Google Meet API',
},
spaceName: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'Space resource name (e.g., spaces/abc123)',
},
},
request: {
url: (params: GoogleMeetEndConferenceParams) => {
const trimmed = params.spaceName.trim()
const name = trimmed.startsWith('spaces/') ? trimmed : `spaces/${trimmed}`
return `${MEET_API_BASE}/${name}:endActiveConference`
},
method: 'POST',
headers: (params: GoogleMeetEndConferenceParams) => ({
Authorization: `Bearer ${params.accessToken}`,
'Content-Type': 'application/json',
}),
body: () => ({}),
},
transformResponse: async (response: Response) => {
if (!response.ok) {
const error = await response.text().catch(() => 'Unknown error')
throw new Error(`Google Meet API error (${response.status}): ${error}`)
}
return {
success: true,
output: {
ended: true,
},
}
},
outputs: {
ended: { type: 'boolean', description: 'Whether the conference was ended successfully' },
},
}
@@ -0,0 +1,78 @@
import {
type GoogleMeetApiConferenceRecordResponse,
type GoogleMeetGetConferenceRecordParams,
type GoogleMeetGetConferenceRecordResponse,
MEET_API_BASE,
} from '@/tools/google_meet/types'
import type { ToolConfig } from '@/tools/types'
export const getConferenceRecordTool: ToolConfig<
GoogleMeetGetConferenceRecordParams,
GoogleMeetGetConferenceRecordResponse
> = {
id: 'google_meet_get_conference_record',
name: 'Google Meet Get Conference Record',
description: 'Get details of a specific conference record',
version: '1.0.0',
oauth: {
required: true,
provider: 'google-meet',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'Access token for Google Meet API',
},
conferenceName: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'Conference record resource name (e.g., conferenceRecords/abc123)',
},
},
request: {
url: (params: GoogleMeetGetConferenceRecordParams) => {
const trimmed = params.conferenceName.trim()
const name = trimmed.startsWith('conferenceRecords/')
? trimmed
: `conferenceRecords/${trimmed}`
return `${MEET_API_BASE}/${name}`
},
method: 'GET',
headers: (params: GoogleMeetGetConferenceRecordParams) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response: Response) => {
if (!response.ok) {
const error = await response.text().catch(() => 'Unknown error')
throw new Error(`Google Meet API error (${response.status}): ${error}`)
}
const data: GoogleMeetApiConferenceRecordResponse = await response.json()
return {
success: true,
output: {
name: data.name,
startTime: data.startTime,
endTime: data.endTime ?? null,
expireTime: data.expireTime,
space: data.space,
},
}
},
outputs: {
name: { type: 'string', description: 'Conference record resource name' },
startTime: { type: 'string', description: 'Conference start time' },
endTime: { type: 'string', description: 'Conference end time', optional: true },
expireTime: { type: 'string', description: 'Conference record expiration time' },
space: { type: 'string', description: 'Associated space resource name' },
},
}
+83
View File
@@ -0,0 +1,83 @@
import {
type GoogleMeetApiSpaceResponse,
type GoogleMeetGetSpaceParams,
type GoogleMeetGetSpaceResponse,
MEET_API_BASE,
} from '@/tools/google_meet/types'
import type { ToolConfig } from '@/tools/types'
export const getSpaceTool: ToolConfig<GoogleMeetGetSpaceParams, GoogleMeetGetSpaceResponse> = {
id: 'google_meet_get_space',
name: 'Google Meet Get Space',
description: 'Get details of a Google Meet meeting space by name or meeting code',
version: '1.0.0',
oauth: {
required: true,
provider: 'google-meet',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'Access token for Google Meet API',
},
spaceName: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'Space resource name (spaces/abc123) or meeting code (abc-defg-hij)',
},
},
request: {
url: (params: GoogleMeetGetSpaceParams) => {
const trimmed = params.spaceName.trim()
const name = trimmed.startsWith('spaces/') ? trimmed : `spaces/${trimmed}`
return `${MEET_API_BASE}/${name}`
},
method: 'GET',
headers: (params: GoogleMeetGetSpaceParams) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response: Response) => {
if (!response.ok) {
const error = await response.text().catch(() => 'Unknown error')
throw new Error(`Google Meet API error (${response.status}): ${error}`)
}
const data: GoogleMeetApiSpaceResponse = await response.json()
return {
success: true,
output: {
name: data.name,
meetingUri: data.meetingUri,
meetingCode: data.meetingCode,
accessType: data.config?.accessType ?? null,
entryPointAccess: data.config?.entryPointAccess ?? null,
activeConference: data.activeConference?.conferenceRecord ?? null,
},
}
},
outputs: {
name: { type: 'string', description: 'Resource name of the space' },
meetingUri: { type: 'string', description: 'Meeting URL' },
meetingCode: { type: 'string', description: 'Meeting code' },
accessType: { type: 'string', description: 'Access type configuration', optional: true },
entryPointAccess: {
type: 'string',
description: 'Entry point access configuration',
optional: true,
},
activeConference: {
type: 'string',
description: 'Active conference record name',
optional: true,
},
},
}
+13
View File
@@ -0,0 +1,13 @@
import { createSpaceTool } from '@/tools/google_meet/create_space'
import { endConferenceTool } from '@/tools/google_meet/end_conference'
import { getConferenceRecordTool } from '@/tools/google_meet/get_conference_record'
import { getSpaceTool } from '@/tools/google_meet/get_space'
import { listConferenceRecordsTool } from '@/tools/google_meet/list_conference_records'
import { listParticipantsTool } from '@/tools/google_meet/list_participants'
export const googleMeetCreateSpaceTool = createSpaceTool
export const googleMeetGetSpaceTool = getSpaceTool
export const googleMeetEndConferenceTool = endConferenceTool
export const googleMeetListConferenceRecordsTool = listConferenceRecordsTool
export const googleMeetGetConferenceRecordTool = getConferenceRecordTool
export const googleMeetListParticipantsTool = listParticipantsTool
@@ -0,0 +1,101 @@
import {
type GoogleMeetApiConferenceRecordListResponse,
type GoogleMeetListConferenceRecordsParams,
type GoogleMeetListConferenceRecordsResponse,
MEET_API_BASE,
} from '@/tools/google_meet/types'
import type { ToolConfig } from '@/tools/types'
export const listConferenceRecordsTool: ToolConfig<
GoogleMeetListConferenceRecordsParams,
GoogleMeetListConferenceRecordsResponse
> = {
id: 'google_meet_list_conference_records',
name: 'Google Meet List Conference Records',
description: 'List conference records for meetings you organized',
version: '1.0.0',
oauth: {
required: true,
provider: 'google-meet',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'Access token for Google Meet API',
},
filter: {
type: 'string',
required: false,
visibility: 'user-or-llm',
description:
'Filter by space name (e.g., space.name = "spaces/abc123") or time range (e.g., start_time > "2024-01-01T00:00:00Z")',
},
pageSize: {
type: 'number',
required: false,
visibility: 'user-or-llm',
description: 'Maximum number of conference records to return (max 100)',
},
pageToken: {
type: 'string',
required: false,
visibility: 'user-or-llm',
description: 'Page token from a previous list request',
},
},
request: {
url: (params: GoogleMeetListConferenceRecordsParams) => {
const queryParams = new URLSearchParams()
if (params.filter) queryParams.append('filter', params.filter)
if (params.pageSize) queryParams.append('pageSize', params.pageSize.toString())
if (params.pageToken) queryParams.append('pageToken', params.pageToken)
const queryString = queryParams.toString()
return `${MEET_API_BASE}/conferenceRecords${queryString ? `?${queryString}` : ''}`
},
method: 'GET',
headers: (params: GoogleMeetListConferenceRecordsParams) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response: Response) => {
if (!response.ok) {
const error = await response.text().catch(() => 'Unknown error')
throw new Error(`Google Meet API error (${response.status}): ${error}`)
}
const data: GoogleMeetApiConferenceRecordListResponse = await response.json()
const records = data.conferenceRecords ?? []
return {
success: true,
output: {
conferenceRecords: records.map((record) => ({
name: record.name,
startTime: record.startTime,
endTime: record.endTime ?? null,
expireTime: record.expireTime,
space: record.space,
})),
nextPageToken: data.nextPageToken ?? null,
},
}
},
outputs: {
conferenceRecords: {
type: 'json',
description: 'List of conference records with name, start/end times, and space',
},
nextPageToken: {
type: 'string',
description: 'Token for next page of results',
optional: true,
},
},
}
@@ -0,0 +1,130 @@
import {
type GoogleMeetApiParticipantListResponse,
type GoogleMeetApiParticipantResponse,
type GoogleMeetListParticipantsParams,
type GoogleMeetListParticipantsResponse,
MEET_API_BASE,
} from '@/tools/google_meet/types'
import type { ToolConfig } from '@/tools/types'
export const listParticipantsTool: ToolConfig<
GoogleMeetListParticipantsParams,
GoogleMeetListParticipantsResponse
> = {
id: 'google_meet_list_participants',
name: 'Google Meet List Participants',
description: 'List participants of a conference record',
version: '1.0.0',
oauth: {
required: true,
provider: 'google-meet',
},
params: {
accessToken: {
type: 'string',
required: true,
visibility: 'hidden',
description: 'Access token for Google Meet API',
},
conferenceName: {
type: 'string',
required: true,
visibility: 'user-or-llm',
description: 'Conference record resource name (e.g., conferenceRecords/abc123)',
},
filter: {
type: 'string',
required: false,
visibility: 'user-or-llm',
description: 'Filter participants (e.g., earliest_start_time > "2024-01-01T00:00:00Z")',
},
pageSize: {
type: 'number',
required: false,
visibility: 'user-or-llm',
description: 'Maximum number of participants to return (default 100, max 250)',
},
pageToken: {
type: 'string',
required: false,
visibility: 'user-or-llm',
description: 'Page token from a previous list request',
},
},
request: {
url: (params: GoogleMeetListParticipantsParams) => {
const trimmed = params.conferenceName.trim()
const name = trimmed.startsWith('conferenceRecords/')
? trimmed
: `conferenceRecords/${trimmed}`
const queryParams = new URLSearchParams()
if (params.filter) queryParams.append('filter', params.filter)
if (params.pageSize) queryParams.append('pageSize', params.pageSize.toString())
if (params.pageToken) queryParams.append('pageToken', params.pageToken)
const queryString = queryParams.toString()
return `${MEET_API_BASE}/${name}/participants${queryString ? `?${queryString}` : ''}`
},
method: 'GET',
headers: (params: GoogleMeetListParticipantsParams) => ({
Authorization: `Bearer ${params.accessToken}`,
}),
},
transformResponse: async (response: Response) => {
if (!response.ok) {
const error = await response.text().catch(() => 'Unknown error')
throw new Error(`Google Meet API error (${response.status}): ${error}`)
}
const data: GoogleMeetApiParticipantListResponse = await response.json()
const participants = data.participants ?? []
const getDisplayName = (p: GoogleMeetApiParticipantResponse): string | null => {
return (
p.signedinUser?.displayName ??
p.anonymousUser?.displayName ??
p.phoneUser?.displayName ??
null
)
}
const getUserType = (p: GoogleMeetApiParticipantResponse): string => {
if (p.signedinUser) return 'signed_in'
if (p.anonymousUser) return 'anonymous'
if (p.phoneUser) return 'phone'
return 'unknown'
}
return {
success: true,
output: {
participants: participants.map((p) => ({
name: p.name,
earliestStartTime: p.earliestStartTime,
latestEndTime: p.latestEndTime ?? null,
displayName: getDisplayName(p),
userType: getUserType(p),
})),
nextPageToken: data.nextPageToken ?? null,
totalSize: data.totalSize ?? null,
},
}
},
outputs: {
participants: {
type: 'json',
description: 'List of participants with name, times, display name, and user type',
},
nextPageToken: {
type: 'string',
description: 'Token for next page of results',
optional: true,
},
totalSize: { type: 'number', description: 'Total number of participants', optional: true },
},
}
+165
View File
@@ -0,0 +1,165 @@
import type { ToolResponse } from '@/tools/types'
export const MEET_API_BASE = 'https://meet.googleapis.com/v2'
interface BaseGoogleMeetParams {
accessToken: string
}
export interface GoogleMeetCreateSpaceParams extends BaseGoogleMeetParams {
accessType?: 'OPEN' | 'TRUSTED' | 'RESTRICTED'
entryPointAccess?: 'ALL' | 'CREATOR_APP_ONLY'
}
export interface GoogleMeetGetSpaceParams extends BaseGoogleMeetParams {
spaceName: string
}
export interface GoogleMeetEndConferenceParams extends BaseGoogleMeetParams {
spaceName: string
}
export interface GoogleMeetListConferenceRecordsParams extends BaseGoogleMeetParams {
filter?: string
pageSize?: number
pageToken?: string
}
export interface GoogleMeetGetConferenceRecordParams extends BaseGoogleMeetParams {
conferenceName: string
}
export interface GoogleMeetListParticipantsParams extends BaseGoogleMeetParams {
conferenceName: string
filter?: string
pageSize?: number
pageToken?: string
}
export type GoogleMeetToolParams =
| GoogleMeetCreateSpaceParams
| GoogleMeetGetSpaceParams
| GoogleMeetEndConferenceParams
| GoogleMeetListConferenceRecordsParams
| GoogleMeetGetConferenceRecordParams
| GoogleMeetListParticipantsParams
export interface GoogleMeetApiSpaceResponse {
name: string
meetingUri: string
meetingCode: string
config?: {
accessType?: string
entryPointAccess?: string
}
activeConference?: {
conferenceRecord: string
}
}
export interface GoogleMeetApiConferenceRecordResponse {
name: string
startTime: string
endTime?: string
expireTime: string
space: string
}
export interface GoogleMeetApiConferenceRecordListResponse {
conferenceRecords: GoogleMeetApiConferenceRecordResponse[]
nextPageToken?: string
}
export interface GoogleMeetApiParticipantResponse {
name: string
earliestStartTime: string
latestEndTime?: string
signedinUser?: {
user: string
displayName: string
}
anonymousUser?: {
displayName: string
}
phoneUser?: {
displayName: string
}
}
export interface GoogleMeetApiParticipantListResponse {
participants: GoogleMeetApiParticipantResponse[]
nextPageToken?: string
totalSize?: number
}
export interface GoogleMeetCreateSpaceResponse extends ToolResponse {
output: {
name: string
meetingUri: string
meetingCode: string
accessType: string | null
entryPointAccess: string | null
}
}
export interface GoogleMeetGetSpaceResponse extends ToolResponse {
output: {
name: string
meetingUri: string
meetingCode: string
accessType: string | null
entryPointAccess: string | null
activeConference: string | null
}
}
export interface GoogleMeetEndConferenceResponse extends ToolResponse {
output: {
ended: boolean
}
}
export interface GoogleMeetListConferenceRecordsResponse extends ToolResponse {
output: {
conferenceRecords: Array<{
name: string
startTime: string
endTime: string | null
expireTime: string
space: string
}>
nextPageToken: string | null
}
}
export interface GoogleMeetGetConferenceRecordResponse extends ToolResponse {
output: {
name: string
startTime: string
endTime: string | null
expireTime: string
space: string
}
}
export interface GoogleMeetListParticipantsResponse extends ToolResponse {
output: {
participants: Array<{
name: string
earliestStartTime: string
latestEndTime: string | null
displayName: string | null
userType: string
}>
nextPageToken: string | null
totalSize: number | null
}
}
export type GoogleMeetResponse =
| GoogleMeetCreateSpaceResponse
| GoogleMeetGetSpaceResponse
| GoogleMeetEndConferenceResponse
| GoogleMeetListConferenceRecordsResponse
| GoogleMeetGetConferenceRecordResponse
| GoogleMeetListParticipantsResponse