@heymantle/core-api-client 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +80 -1
- package/dist/index.d.ts +80 -1
- package/dist/index.js +67 -0
- package/dist/index.mjs +67 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3002,6 +3002,23 @@ interface MeetingTranscriptionStatusResponse {
|
|
|
3002
3002
|
externalId?: string;
|
|
3003
3003
|
} | null;
|
|
3004
3004
|
}
|
|
3005
|
+
/**
|
|
3006
|
+
* Parameters for updating a meeting attendee
|
|
3007
|
+
*/
|
|
3008
|
+
interface MeetingAttendeeUpdateParams {
|
|
3009
|
+
/** Updated attendee name */
|
|
3010
|
+
name?: string;
|
|
3011
|
+
/** Updated attendee email */
|
|
3012
|
+
email?: string;
|
|
3013
|
+
/** Link attendee to a Mantle contact (null to unlink) */
|
|
3014
|
+
contactId?: string | null;
|
|
3015
|
+
}
|
|
3016
|
+
/**
|
|
3017
|
+
* Response from updating an attendee
|
|
3018
|
+
*/
|
|
3019
|
+
interface MeetingAttendeeUpdateResponse {
|
|
3020
|
+
attendee: MeetingAttendee;
|
|
3021
|
+
}
|
|
3005
3022
|
|
|
3006
3023
|
/**
|
|
3007
3024
|
* Resource for managing customers
|
|
@@ -4672,6 +4689,68 @@ declare class MeetingsResource extends BaseResource {
|
|
|
4672
4689
|
* ```
|
|
4673
4690
|
*/
|
|
4674
4691
|
getTranscriptionStatus(meetingId: string): Promise<MeetingTranscriptionStatusResponse>;
|
|
4692
|
+
/**
|
|
4693
|
+
* Update a meeting attendee
|
|
4694
|
+
*
|
|
4695
|
+
* Updates attendee details such as name or links the attendee to a Mantle contact.
|
|
4696
|
+
* This is useful for speaker identification in transcripts.
|
|
4697
|
+
*
|
|
4698
|
+
* @param meetingId - The meeting ID
|
|
4699
|
+
* @param attendeeId - The attendee ID (or externalId if useExternalId option is set)
|
|
4700
|
+
* @param data - Fields to update
|
|
4701
|
+
* @param options - Additional options
|
|
4702
|
+
* @param options.useExternalId - If true, treat attendeeId as the externalId (e.g., "A", "B" from browser extension)
|
|
4703
|
+
* @returns The updated attendee
|
|
4704
|
+
*
|
|
4705
|
+
* @example
|
|
4706
|
+
* ```typescript
|
|
4707
|
+
* // Update attendee name by server ID
|
|
4708
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
4709
|
+
* 'meeting_123',
|
|
4710
|
+
* 'attendee_456',
|
|
4711
|
+
* { name: 'John Doe' }
|
|
4712
|
+
* );
|
|
4713
|
+
*
|
|
4714
|
+
* // Update attendee name by external ID (e.g., from browser extension)
|
|
4715
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
4716
|
+
* 'meeting_123',
|
|
4717
|
+
* 'A',
|
|
4718
|
+
* { name: 'John Doe' },
|
|
4719
|
+
* { useExternalId: true }
|
|
4720
|
+
* );
|
|
4721
|
+
*
|
|
4722
|
+
* // Link attendee to a contact
|
|
4723
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
4724
|
+
* 'meeting_123',
|
|
4725
|
+
* 'attendee_456',
|
|
4726
|
+
* { contactId: 'contact_789' }
|
|
4727
|
+
* );
|
|
4728
|
+
* ```
|
|
4729
|
+
*/
|
|
4730
|
+
updateAttendee(meetingId: string, attendeeId: string, data: MeetingAttendeeUpdateParams, options?: {
|
|
4731
|
+
useExternalId?: boolean;
|
|
4732
|
+
}): Promise<MeetingAttendeeUpdateResponse>;
|
|
4733
|
+
/**
|
|
4734
|
+
* Get a signed URL to stream/download the meeting recording
|
|
4735
|
+
*
|
|
4736
|
+
* Returns a temporary signed URL that can be used to play or download
|
|
4737
|
+
* the meeting recording. URLs expire after 1 hour.
|
|
4738
|
+
*
|
|
4739
|
+
* @param meetingId - The meeting ID
|
|
4740
|
+
* @returns Signed URL and expiration info
|
|
4741
|
+
*
|
|
4742
|
+
* @example
|
|
4743
|
+
* ```typescript
|
|
4744
|
+
* const { recordingUrl, expiresIn } = await client.meetings.getRecordingUrl('meeting_123');
|
|
4745
|
+
*
|
|
4746
|
+
* // Use the URL in an audio/video element
|
|
4747
|
+
* audioElement.src = recordingUrl;
|
|
4748
|
+
* ```
|
|
4749
|
+
*/
|
|
4750
|
+
getRecordingUrl(meetingId: string): Promise<{
|
|
4751
|
+
recordingUrl: string;
|
|
4752
|
+
expiresIn: number;
|
|
4753
|
+
}>;
|
|
4675
4754
|
}
|
|
4676
4755
|
|
|
4677
4756
|
/**
|
|
@@ -5024,4 +5103,4 @@ interface RateLimitOptions {
|
|
|
5024
5103
|
*/
|
|
5025
5104
|
declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
|
|
5026
5105
|
|
|
5027
|
-
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentCreateParams, type AgentListResponse, type AgentResponse, type AgentRun, type AgentRunCreateParams, type AgentRunCreateResponse, type AgentRunRetrieveResponse, type AgentRunStatus, type AgentRunTokenUsage, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocRepository, type DocRepositoryCollection, type DocRepositoryListParams, type DocRepositoryListResponse, type DocRepositoryLocale, type DocRepositoryRetrieveParams, type DocTreeNode, type DocTreeResponse, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupAddMembersParams, type EmailUnsubscribeGroupAddMembersResponse, type EmailUnsubscribeGroupListParams, type EmailUnsubscribeGroupListResponse, type EmailUnsubscribeGroupMember, type EmailUnsubscribeGroupMemberListParams, type EmailUnsubscribeGroupMemberListResponse, type EmailUnsubscribeGroupRemoveMembersParams, type EmailUnsubscribeGroupRemoveMembersResponse, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowActionRun, type FlowActionRunStatus, type FlowActionRunUpdateParams, type FlowCreateParams, type FlowExtensionAction, type FlowExtensionActionCreateParams, type FlowExtensionActionListParams, type FlowExtensionActionListResponse, type FlowExtensionActionUpdateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type HttpMethod, type JournalEntry, type JournalEntryCreateParams, type JournalEntryFile, type JournalEntryListParams, type JournalEntryListResponse, type JournalEntryUpdateParams, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type Meeting, type MeetingAttendee, type MeetingAttendeeInput, type MeetingCreateParams, type MeetingListParams, type MeetingListResponse, type MeetingTranscribeParams, type MeetingTranscript, type MeetingTranscriptInput, type MeetingTranscriptionStatusResponse, type MeetingUpdateParams, type MeetingUploadUrlResponse, type MeetingUtterance, type MeetingUtteranceInput, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SalesMetrics, type SalesMetricsParams, type SalesMetricsResponse, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
|
5106
|
+
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentCreateParams, type AgentListResponse, type AgentResponse, type AgentRun, type AgentRunCreateParams, type AgentRunCreateResponse, type AgentRunRetrieveResponse, type AgentRunStatus, type AgentRunTokenUsage, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocRepository, type DocRepositoryCollection, type DocRepositoryListParams, type DocRepositoryListResponse, type DocRepositoryLocale, type DocRepositoryRetrieveParams, type DocTreeNode, type DocTreeResponse, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupAddMembersParams, type EmailUnsubscribeGroupAddMembersResponse, type EmailUnsubscribeGroupListParams, type EmailUnsubscribeGroupListResponse, type EmailUnsubscribeGroupMember, type EmailUnsubscribeGroupMemberListParams, type EmailUnsubscribeGroupMemberListResponse, type EmailUnsubscribeGroupRemoveMembersParams, type EmailUnsubscribeGroupRemoveMembersResponse, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowActionRun, type FlowActionRunStatus, type FlowActionRunUpdateParams, type FlowCreateParams, type FlowExtensionAction, type FlowExtensionActionCreateParams, type FlowExtensionActionListParams, type FlowExtensionActionListResponse, type FlowExtensionActionUpdateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type HttpMethod, type JournalEntry, type JournalEntryCreateParams, type JournalEntryFile, type JournalEntryListParams, type JournalEntryListResponse, type JournalEntryUpdateParams, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type Meeting, type MeetingAttendee, type MeetingAttendeeInput, type MeetingAttendeeUpdateParams, type MeetingAttendeeUpdateResponse, type MeetingCreateParams, type MeetingListParams, type MeetingListResponse, type MeetingTranscribeParams, type MeetingTranscript, type MeetingTranscriptInput, type MeetingTranscriptionStatusResponse, type MeetingUpdateParams, type MeetingUploadUrlResponse, type MeetingUtterance, type MeetingUtteranceInput, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SalesMetrics, type SalesMetricsParams, type SalesMetricsResponse, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
package/dist/index.d.ts
CHANGED
|
@@ -3002,6 +3002,23 @@ interface MeetingTranscriptionStatusResponse {
|
|
|
3002
3002
|
externalId?: string;
|
|
3003
3003
|
} | null;
|
|
3004
3004
|
}
|
|
3005
|
+
/**
|
|
3006
|
+
* Parameters for updating a meeting attendee
|
|
3007
|
+
*/
|
|
3008
|
+
interface MeetingAttendeeUpdateParams {
|
|
3009
|
+
/** Updated attendee name */
|
|
3010
|
+
name?: string;
|
|
3011
|
+
/** Updated attendee email */
|
|
3012
|
+
email?: string;
|
|
3013
|
+
/** Link attendee to a Mantle contact (null to unlink) */
|
|
3014
|
+
contactId?: string | null;
|
|
3015
|
+
}
|
|
3016
|
+
/**
|
|
3017
|
+
* Response from updating an attendee
|
|
3018
|
+
*/
|
|
3019
|
+
interface MeetingAttendeeUpdateResponse {
|
|
3020
|
+
attendee: MeetingAttendee;
|
|
3021
|
+
}
|
|
3005
3022
|
|
|
3006
3023
|
/**
|
|
3007
3024
|
* Resource for managing customers
|
|
@@ -4672,6 +4689,68 @@ declare class MeetingsResource extends BaseResource {
|
|
|
4672
4689
|
* ```
|
|
4673
4690
|
*/
|
|
4674
4691
|
getTranscriptionStatus(meetingId: string): Promise<MeetingTranscriptionStatusResponse>;
|
|
4692
|
+
/**
|
|
4693
|
+
* Update a meeting attendee
|
|
4694
|
+
*
|
|
4695
|
+
* Updates attendee details such as name or links the attendee to a Mantle contact.
|
|
4696
|
+
* This is useful for speaker identification in transcripts.
|
|
4697
|
+
*
|
|
4698
|
+
* @param meetingId - The meeting ID
|
|
4699
|
+
* @param attendeeId - The attendee ID (or externalId if useExternalId option is set)
|
|
4700
|
+
* @param data - Fields to update
|
|
4701
|
+
* @param options - Additional options
|
|
4702
|
+
* @param options.useExternalId - If true, treat attendeeId as the externalId (e.g., "A", "B" from browser extension)
|
|
4703
|
+
* @returns The updated attendee
|
|
4704
|
+
*
|
|
4705
|
+
* @example
|
|
4706
|
+
* ```typescript
|
|
4707
|
+
* // Update attendee name by server ID
|
|
4708
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
4709
|
+
* 'meeting_123',
|
|
4710
|
+
* 'attendee_456',
|
|
4711
|
+
* { name: 'John Doe' }
|
|
4712
|
+
* );
|
|
4713
|
+
*
|
|
4714
|
+
* // Update attendee name by external ID (e.g., from browser extension)
|
|
4715
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
4716
|
+
* 'meeting_123',
|
|
4717
|
+
* 'A',
|
|
4718
|
+
* { name: 'John Doe' },
|
|
4719
|
+
* { useExternalId: true }
|
|
4720
|
+
* );
|
|
4721
|
+
*
|
|
4722
|
+
* // Link attendee to a contact
|
|
4723
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
4724
|
+
* 'meeting_123',
|
|
4725
|
+
* 'attendee_456',
|
|
4726
|
+
* { contactId: 'contact_789' }
|
|
4727
|
+
* );
|
|
4728
|
+
* ```
|
|
4729
|
+
*/
|
|
4730
|
+
updateAttendee(meetingId: string, attendeeId: string, data: MeetingAttendeeUpdateParams, options?: {
|
|
4731
|
+
useExternalId?: boolean;
|
|
4732
|
+
}): Promise<MeetingAttendeeUpdateResponse>;
|
|
4733
|
+
/**
|
|
4734
|
+
* Get a signed URL to stream/download the meeting recording
|
|
4735
|
+
*
|
|
4736
|
+
* Returns a temporary signed URL that can be used to play or download
|
|
4737
|
+
* the meeting recording. URLs expire after 1 hour.
|
|
4738
|
+
*
|
|
4739
|
+
* @param meetingId - The meeting ID
|
|
4740
|
+
* @returns Signed URL and expiration info
|
|
4741
|
+
*
|
|
4742
|
+
* @example
|
|
4743
|
+
* ```typescript
|
|
4744
|
+
* const { recordingUrl, expiresIn } = await client.meetings.getRecordingUrl('meeting_123');
|
|
4745
|
+
*
|
|
4746
|
+
* // Use the URL in an audio/video element
|
|
4747
|
+
* audioElement.src = recordingUrl;
|
|
4748
|
+
* ```
|
|
4749
|
+
*/
|
|
4750
|
+
getRecordingUrl(meetingId: string): Promise<{
|
|
4751
|
+
recordingUrl: string;
|
|
4752
|
+
expiresIn: number;
|
|
4753
|
+
}>;
|
|
4675
4754
|
}
|
|
4676
4755
|
|
|
4677
4756
|
/**
|
|
@@ -5024,4 +5103,4 @@ interface RateLimitOptions {
|
|
|
5024
5103
|
*/
|
|
5025
5104
|
declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
|
|
5026
5105
|
|
|
5027
|
-
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentCreateParams, type AgentListResponse, type AgentResponse, type AgentRun, type AgentRunCreateParams, type AgentRunCreateResponse, type AgentRunRetrieveResponse, type AgentRunStatus, type AgentRunTokenUsage, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocRepository, type DocRepositoryCollection, type DocRepositoryListParams, type DocRepositoryListResponse, type DocRepositoryLocale, type DocRepositoryRetrieveParams, type DocTreeNode, type DocTreeResponse, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupAddMembersParams, type EmailUnsubscribeGroupAddMembersResponse, type EmailUnsubscribeGroupListParams, type EmailUnsubscribeGroupListResponse, type EmailUnsubscribeGroupMember, type EmailUnsubscribeGroupMemberListParams, type EmailUnsubscribeGroupMemberListResponse, type EmailUnsubscribeGroupRemoveMembersParams, type EmailUnsubscribeGroupRemoveMembersResponse, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowActionRun, type FlowActionRunStatus, type FlowActionRunUpdateParams, type FlowCreateParams, type FlowExtensionAction, type FlowExtensionActionCreateParams, type FlowExtensionActionListParams, type FlowExtensionActionListResponse, type FlowExtensionActionUpdateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type HttpMethod, type JournalEntry, type JournalEntryCreateParams, type JournalEntryFile, type JournalEntryListParams, type JournalEntryListResponse, type JournalEntryUpdateParams, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type Meeting, type MeetingAttendee, type MeetingAttendeeInput, type MeetingCreateParams, type MeetingListParams, type MeetingListResponse, type MeetingTranscribeParams, type MeetingTranscript, type MeetingTranscriptInput, type MeetingTranscriptionStatusResponse, type MeetingUpdateParams, type MeetingUploadUrlResponse, type MeetingUtterance, type MeetingUtteranceInput, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SalesMetrics, type SalesMetricsParams, type SalesMetricsResponse, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
|
5106
|
+
export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentCreateParams, type AgentListResponse, type AgentResponse, type AgentRun, type AgentRunCreateParams, type AgentRunCreateResponse, type AgentRunRetrieveResponse, type AgentRunStatus, type AgentRunTokenUsage, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocRepository, type DocRepositoryCollection, type DocRepositoryListParams, type DocRepositoryListResponse, type DocRepositoryLocale, type DocRepositoryRetrieveParams, type DocTreeNode, type DocTreeResponse, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupAddMembersParams, type EmailUnsubscribeGroupAddMembersResponse, type EmailUnsubscribeGroupListParams, type EmailUnsubscribeGroupListResponse, type EmailUnsubscribeGroupMember, type EmailUnsubscribeGroupMemberListParams, type EmailUnsubscribeGroupMemberListResponse, type EmailUnsubscribeGroupRemoveMembersParams, type EmailUnsubscribeGroupRemoveMembersResponse, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowActionRun, type FlowActionRunStatus, type FlowActionRunUpdateParams, type FlowCreateParams, type FlowExtensionAction, type FlowExtensionActionCreateParams, type FlowExtensionActionListParams, type FlowExtensionActionListResponse, type FlowExtensionActionUpdateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type HttpMethod, type JournalEntry, type JournalEntryCreateParams, type JournalEntryFile, type JournalEntryListParams, type JournalEntryListResponse, type JournalEntryUpdateParams, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type Meeting, type MeetingAttendee, type MeetingAttendeeInput, type MeetingAttendeeUpdateParams, type MeetingAttendeeUpdateResponse, type MeetingCreateParams, type MeetingListParams, type MeetingListResponse, type MeetingTranscribeParams, type MeetingTranscript, type MeetingTranscriptInput, type MeetingTranscriptionStatusResponse, type MeetingUpdateParams, type MeetingUploadUrlResponse, type MeetingUtterance, type MeetingUtteranceInput, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SalesMetrics, type SalesMetricsParams, type SalesMetricsResponse, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource, createAuthRefreshMiddleware, createRateLimitMiddleware };
|
package/dist/index.js
CHANGED
|
@@ -2578,6 +2578,73 @@ var MeetingsResource = class extends BaseResource {
|
|
|
2578
2578
|
`/meetings/${meetingId}/transcribe`
|
|
2579
2579
|
);
|
|
2580
2580
|
}
|
|
2581
|
+
/**
|
|
2582
|
+
* Update a meeting attendee
|
|
2583
|
+
*
|
|
2584
|
+
* Updates attendee details such as name or links the attendee to a Mantle contact.
|
|
2585
|
+
* This is useful for speaker identification in transcripts.
|
|
2586
|
+
*
|
|
2587
|
+
* @param meetingId - The meeting ID
|
|
2588
|
+
* @param attendeeId - The attendee ID (or externalId if useExternalId option is set)
|
|
2589
|
+
* @param data - Fields to update
|
|
2590
|
+
* @param options - Additional options
|
|
2591
|
+
* @param options.useExternalId - If true, treat attendeeId as the externalId (e.g., "A", "B" from browser extension)
|
|
2592
|
+
* @returns The updated attendee
|
|
2593
|
+
*
|
|
2594
|
+
* @example
|
|
2595
|
+
* ```typescript
|
|
2596
|
+
* // Update attendee name by server ID
|
|
2597
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
2598
|
+
* 'meeting_123',
|
|
2599
|
+
* 'attendee_456',
|
|
2600
|
+
* { name: 'John Doe' }
|
|
2601
|
+
* );
|
|
2602
|
+
*
|
|
2603
|
+
* // Update attendee name by external ID (e.g., from browser extension)
|
|
2604
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
2605
|
+
* 'meeting_123',
|
|
2606
|
+
* 'A',
|
|
2607
|
+
* { name: 'John Doe' },
|
|
2608
|
+
* { useExternalId: true }
|
|
2609
|
+
* );
|
|
2610
|
+
*
|
|
2611
|
+
* // Link attendee to a contact
|
|
2612
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
2613
|
+
* 'meeting_123',
|
|
2614
|
+
* 'attendee_456',
|
|
2615
|
+
* { contactId: 'contact_789' }
|
|
2616
|
+
* );
|
|
2617
|
+
* ```
|
|
2618
|
+
*/
|
|
2619
|
+
async updateAttendee(meetingId, attendeeId, data, options) {
|
|
2620
|
+
const queryParams = options?.useExternalId ? "?useExternalId=true" : "";
|
|
2621
|
+
return this.put(
|
|
2622
|
+
`/meetings/${meetingId}/attendees/${attendeeId}${queryParams}`,
|
|
2623
|
+
data
|
|
2624
|
+
);
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* Get a signed URL to stream/download the meeting recording
|
|
2628
|
+
*
|
|
2629
|
+
* Returns a temporary signed URL that can be used to play or download
|
|
2630
|
+
* the meeting recording. URLs expire after 1 hour.
|
|
2631
|
+
*
|
|
2632
|
+
* @param meetingId - The meeting ID
|
|
2633
|
+
* @returns Signed URL and expiration info
|
|
2634
|
+
*
|
|
2635
|
+
* @example
|
|
2636
|
+
* ```typescript
|
|
2637
|
+
* const { recordingUrl, expiresIn } = await client.meetings.getRecordingUrl('meeting_123');
|
|
2638
|
+
*
|
|
2639
|
+
* // Use the URL in an audio/video element
|
|
2640
|
+
* audioElement.src = recordingUrl;
|
|
2641
|
+
* ```
|
|
2642
|
+
*/
|
|
2643
|
+
async getRecordingUrl(meetingId) {
|
|
2644
|
+
return this.get(
|
|
2645
|
+
`/meetings/${meetingId}/recording-url`
|
|
2646
|
+
);
|
|
2647
|
+
}
|
|
2581
2648
|
};
|
|
2582
2649
|
|
|
2583
2650
|
// src/client.ts
|
package/dist/index.mjs
CHANGED
|
@@ -2512,6 +2512,73 @@ var MeetingsResource = class extends BaseResource {
|
|
|
2512
2512
|
`/meetings/${meetingId}/transcribe`
|
|
2513
2513
|
);
|
|
2514
2514
|
}
|
|
2515
|
+
/**
|
|
2516
|
+
* Update a meeting attendee
|
|
2517
|
+
*
|
|
2518
|
+
* Updates attendee details such as name or links the attendee to a Mantle contact.
|
|
2519
|
+
* This is useful for speaker identification in transcripts.
|
|
2520
|
+
*
|
|
2521
|
+
* @param meetingId - The meeting ID
|
|
2522
|
+
* @param attendeeId - The attendee ID (or externalId if useExternalId option is set)
|
|
2523
|
+
* @param data - Fields to update
|
|
2524
|
+
* @param options - Additional options
|
|
2525
|
+
* @param options.useExternalId - If true, treat attendeeId as the externalId (e.g., "A", "B" from browser extension)
|
|
2526
|
+
* @returns The updated attendee
|
|
2527
|
+
*
|
|
2528
|
+
* @example
|
|
2529
|
+
* ```typescript
|
|
2530
|
+
* // Update attendee name by server ID
|
|
2531
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
2532
|
+
* 'meeting_123',
|
|
2533
|
+
* 'attendee_456',
|
|
2534
|
+
* { name: 'John Doe' }
|
|
2535
|
+
* );
|
|
2536
|
+
*
|
|
2537
|
+
* // Update attendee name by external ID (e.g., from browser extension)
|
|
2538
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
2539
|
+
* 'meeting_123',
|
|
2540
|
+
* 'A',
|
|
2541
|
+
* { name: 'John Doe' },
|
|
2542
|
+
* { useExternalId: true }
|
|
2543
|
+
* );
|
|
2544
|
+
*
|
|
2545
|
+
* // Link attendee to a contact
|
|
2546
|
+
* const { attendee } = await client.meetings.updateAttendee(
|
|
2547
|
+
* 'meeting_123',
|
|
2548
|
+
* 'attendee_456',
|
|
2549
|
+
* { contactId: 'contact_789' }
|
|
2550
|
+
* );
|
|
2551
|
+
* ```
|
|
2552
|
+
*/
|
|
2553
|
+
async updateAttendee(meetingId, attendeeId, data, options) {
|
|
2554
|
+
const queryParams = options?.useExternalId ? "?useExternalId=true" : "";
|
|
2555
|
+
return this.put(
|
|
2556
|
+
`/meetings/${meetingId}/attendees/${attendeeId}${queryParams}`,
|
|
2557
|
+
data
|
|
2558
|
+
);
|
|
2559
|
+
}
|
|
2560
|
+
/**
|
|
2561
|
+
* Get a signed URL to stream/download the meeting recording
|
|
2562
|
+
*
|
|
2563
|
+
* Returns a temporary signed URL that can be used to play or download
|
|
2564
|
+
* the meeting recording. URLs expire after 1 hour.
|
|
2565
|
+
*
|
|
2566
|
+
* @param meetingId - The meeting ID
|
|
2567
|
+
* @returns Signed URL and expiration info
|
|
2568
|
+
*
|
|
2569
|
+
* @example
|
|
2570
|
+
* ```typescript
|
|
2571
|
+
* const { recordingUrl, expiresIn } = await client.meetings.getRecordingUrl('meeting_123');
|
|
2572
|
+
*
|
|
2573
|
+
* // Use the URL in an audio/video element
|
|
2574
|
+
* audioElement.src = recordingUrl;
|
|
2575
|
+
* ```
|
|
2576
|
+
*/
|
|
2577
|
+
async getRecordingUrl(meetingId) {
|
|
2578
|
+
return this.get(
|
|
2579
|
+
`/meetings/${meetingId}/recording-url`
|
|
2580
|
+
);
|
|
2581
|
+
}
|
|
2515
2582
|
};
|
|
2516
2583
|
|
|
2517
2584
|
// src/client.ts
|