@farcaster/miniapp-core 0.3.6 → 0.3.7

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/src/context.ts CHANGED
@@ -116,6 +116,7 @@ export type ClientContext = {
116
116
 
117
117
  export type ClientFeatures = {
118
118
  haptics: boolean
119
+ cameraAndMicrophoneAccess?: boolean
119
120
  }
120
121
 
121
122
  export type MiniAppContext = {
package/src/types.ts CHANGED
@@ -8,6 +8,7 @@ import type {
8
8
  ComposeCast,
9
9
  OpenMiniApp,
10
10
  Ready,
11
+ RequestCameraAndMicrophoneAccess,
11
12
  SendToken,
12
13
  SignIn,
13
14
  SwapToken,
@@ -62,6 +63,7 @@ export const miniAppHostCapabilityList = [
62
63
  'actions.sendToken',
63
64
  'actions.swapToken',
64
65
  'actions.openMiniApp',
66
+ 'actions.requestCameraAndMicrophoneAccess',
65
67
  'haptics.impactOccurred',
66
68
  'haptics.notificationOccurred',
67
69
  'haptics.selectionChanged',
@@ -97,6 +99,7 @@ export type WireMiniAppHost = {
97
99
  composeCast: <close extends boolean | undefined = undefined>(
98
100
  options: ComposeCast.Options<close>,
99
101
  ) => Promise<ComposeCast.Result<close>>
102
+ requestCameraAndMicrophoneAccess: RequestCameraAndMicrophoneAccess.RequestCameraAndMicrophoneAccess
100
103
  impactOccurred: ImpactOccurred
101
104
  notificationOccurred: NotificationOccurred
102
105
  selectionChanged: SelectionChanged
@@ -131,6 +134,7 @@ export type MiniAppHost = {
131
134
  composeCast: <close extends boolean | undefined = undefined>(
132
135
  options: ComposeCast.Options<close>,
133
136
  ) => Promise<ComposeCast.Result<close>>
137
+ requestCameraAndMicrophoneAccess: RequestCameraAndMicrophoneAccess.RequestCameraAndMicrophoneAccess
134
138
  impactOccurred: ImpactOccurred
135
139
  notificationOccurred: NotificationOccurred
136
140
  selectionChanged: SelectionChanged