theta-client-react-native 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +6 -1
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +409 -0
  4. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +700 -24
  5. package/ios/ThetaClientReactNative.h +6 -0
  6. package/ios/ThetaClientReactNative.mm +1661 -183
  7. package/lib/commonjs/capture/capture.js +118 -0
  8. package/lib/commonjs/capture/capture.js.map +1 -0
  9. package/lib/commonjs/capture/index.js +50 -0
  10. package/lib/commonjs/capture/index.js.map +1 -0
  11. package/lib/commonjs/capture/notify.js +12 -0
  12. package/lib/commonjs/capture/notify.js.map +1 -0
  13. package/lib/commonjs/capture/photo-capture.js +64 -0
  14. package/lib/commonjs/capture/photo-capture.js.map +1 -0
  15. package/lib/commonjs/capture/time-shift-capture.js +91 -0
  16. package/lib/commonjs/capture/time-shift-capture.js.map +1 -0
  17. package/lib/commonjs/capture/video-capture.js +71 -0
  18. package/lib/commonjs/capture/video-capture.js.map +1 -0
  19. package/lib/commonjs/index.js +40 -1041
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/commonjs/theta-repository/access-point.js +23 -0
  22. package/lib/commonjs/theta-repository/access-point.js.map +1 -0
  23. package/lib/commonjs/theta-repository/digest-auth.js +2 -0
  24. package/lib/commonjs/theta-repository/digest-auth.js.map +1 -0
  25. package/lib/commonjs/theta-repository/index.js +105 -0
  26. package/lib/commonjs/theta-repository/index.js.map +1 -0
  27. package/lib/commonjs/theta-repository/options/index.js +138 -0
  28. package/lib/commonjs/theta-repository/options/index.js.map +1 -0
  29. package/lib/commonjs/theta-repository/options/option-camera-control-source.js +29 -0
  30. package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -0
  31. package/lib/commonjs/theta-repository/options/option-camera-mode.js +26 -0
  32. package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -0
  33. package/lib/commonjs/theta-repository/options/option-network-type.js +26 -0
  34. package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -0
  35. package/lib/commonjs/theta-repository/options/option-power-saving.js +24 -0
  36. package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -0
  37. package/lib/commonjs/theta-repository/options/option-preview-format.js +32 -0
  38. package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -0
  39. package/lib/commonjs/theta-repository/options/option-proxy.js +2 -0
  40. package/lib/commonjs/theta-repository/options/option-proxy.js.map +1 -0
  41. package/lib/commonjs/theta-repository/options/option-shooting-method.js +41 -0
  42. package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -0
  43. package/lib/commonjs/theta-repository/options/option-shutter-speed.js +302 -0
  44. package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -0
  45. package/lib/commonjs/theta-repository/options/option-time-shift.js +43 -0
  46. package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -0
  47. package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js +25 -0
  48. package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
  49. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +22 -0
  50. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -0
  51. package/lib/commonjs/theta-repository/options/options.js +490 -0
  52. package/lib/commonjs/theta-repository/options/options.js.map +1 -0
  53. package/lib/commonjs/theta-repository/theta-config.js +6 -0
  54. package/lib/commonjs/theta-repository/theta-config.js.map +1 -0
  55. package/lib/commonjs/theta-repository/theta-files.js +35 -0
  56. package/lib/commonjs/theta-repository/theta-files.js.map +1 -0
  57. package/lib/commonjs/theta-repository/theta-info.js +2 -0
  58. package/lib/commonjs/theta-repository/theta-info.js.map +1 -0
  59. package/lib/commonjs/theta-repository/theta-meta.js +2 -0
  60. package/lib/commonjs/theta-repository/theta-meta.js.map +1 -0
  61. package/lib/commonjs/theta-repository/theta-plugin.js +2 -0
  62. package/lib/commonjs/theta-repository/theta-plugin.js.map +1 -0
  63. package/lib/commonjs/theta-repository/theta-repository.js +510 -0
  64. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -0
  65. package/lib/commonjs/theta-repository/theta-state.js +120 -0
  66. package/lib/commonjs/theta-repository/theta-state.js.map +1 -0
  67. package/lib/commonjs/theta-repository/theta-timeout.js +2 -0
  68. package/lib/commonjs/theta-repository/theta-timeout.js.map +1 -0
  69. package/lib/module/capture/capture.js +111 -0
  70. package/lib/module/capture/capture.js.map +1 -0
  71. package/lib/module/capture/index.js +5 -0
  72. package/lib/module/capture/index.js.map +1 -0
  73. package/lib/module/capture/notify.js +6 -0
  74. package/lib/module/capture/notify.js.map +1 -0
  75. package/lib/module/capture/photo-capture.js +56 -0
  76. package/lib/module/capture/photo-capture.js.map +1 -0
  77. package/lib/module/capture/time-shift-capture.js +83 -0
  78. package/lib/module/capture/time-shift-capture.js.map +1 -0
  79. package/lib/module/capture/video-capture.js +63 -0
  80. package/lib/module/capture/video-capture.js.map +1 -0
  81. package/lib/module/index.js +3 -1009
  82. package/lib/module/index.js.map +1 -1
  83. package/lib/module/theta-repository/access-point.js +16 -0
  84. package/lib/module/theta-repository/access-point.js.map +1 -0
  85. package/lib/module/theta-repository/digest-auth.js +2 -0
  86. package/lib/module/theta-repository/digest-auth.js.map +1 -0
  87. package/lib/module/theta-repository/index.js +10 -0
  88. package/lib/module/theta-repository/index.js.map +1 -0
  89. package/lib/module/theta-repository/options/index.js +13 -0
  90. package/lib/module/theta-repository/options/index.js.map +1 -0
  91. package/lib/module/theta-repository/options/option-camera-control-source.js +22 -0
  92. package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -0
  93. package/lib/module/theta-repository/options/option-camera-mode.js +19 -0
  94. package/lib/module/theta-repository/options/option-camera-mode.js.map +1 -0
  95. package/lib/module/theta-repository/options/option-network-type.js +19 -0
  96. package/lib/module/theta-repository/options/option-network-type.js.map +1 -0
  97. package/lib/module/theta-repository/options/option-power-saving.js +17 -0
  98. package/lib/module/theta-repository/options/option-power-saving.js.map +1 -0
  99. package/lib/module/theta-repository/options/option-preview-format.js +25 -0
  100. package/lib/module/theta-repository/options/option-preview-format.js.map +1 -0
  101. package/lib/module/theta-repository/options/option-proxy.js +2 -0
  102. package/lib/module/theta-repository/options/option-proxy.js.map +1 -0
  103. package/lib/module/theta-repository/options/option-shooting-method.js +34 -0
  104. package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -0
  105. package/lib/module/theta-repository/options/option-shutter-speed.js +295 -0
  106. package/lib/module/theta-repository/options/option-shutter-speed.js.map +1 -0
  107. package/lib/module/theta-repository/options/option-time-shift.js +36 -0
  108. package/lib/module/theta-repository/options/option-time-shift.js.map +1 -0
  109. package/lib/module/theta-repository/options/option-white-balance-auto-strength.js +18 -0
  110. package/lib/module/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
  111. package/lib/module/theta-repository/options/option-wlan-frequency.js +15 -0
  112. package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -0
  113. package/lib/module/theta-repository/options/options.js +482 -0
  114. package/lib/module/theta-repository/options/options.js.map +1 -0
  115. package/lib/module/theta-repository/theta-config.js +2 -0
  116. package/lib/module/theta-repository/theta-config.js.map +1 -0
  117. package/lib/module/theta-repository/theta-files.js +28 -0
  118. package/lib/module/theta-repository/theta-files.js.map +1 -0
  119. package/lib/module/theta-repository/theta-info.js +2 -0
  120. package/lib/module/theta-repository/theta-info.js.map +1 -0
  121. package/lib/module/theta-repository/theta-meta.js +2 -0
  122. package/lib/module/theta-repository/theta-meta.js.map +1 -0
  123. package/lib/module/theta-repository/theta-plugin.js +2 -0
  124. package/lib/module/theta-repository/theta-plugin.js.map +1 -0
  125. package/lib/module/theta-repository/theta-repository.js +466 -0
  126. package/lib/module/theta-repository/theta-repository.js.map +1 -0
  127. package/lib/module/theta-repository/theta-state.js +113 -0
  128. package/lib/module/theta-repository/theta-state.js.map +1 -0
  129. package/lib/module/theta-repository/theta-timeout.js +2 -0
  130. package/lib/module/theta-repository/theta-timeout.js.map +1 -0
  131. package/lib/typescript/capture/capture.d.ts +71 -0
  132. package/lib/typescript/capture/capture.d.ts.map +1 -0
  133. package/lib/typescript/capture/index.d.ts +5 -0
  134. package/lib/typescript/capture/index.d.ts.map +1 -0
  135. package/lib/typescript/capture/notify.d.ts +13 -0
  136. package/lib/typescript/capture/notify.d.ts.map +1 -0
  137. package/lib/typescript/capture/photo-capture.d.ts +38 -0
  138. package/lib/typescript/capture/photo-capture.d.ts.map +1 -0
  139. package/lib/typescript/capture/time-shift-capture.d.ts +44 -0
  140. package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -0
  141. package/lib/typescript/capture/video-capture.d.ts +43 -0
  142. package/lib/typescript/capture/video-capture.d.ts.map +1 -0
  143. package/lib/typescript/index.d.ts +3 -972
  144. package/lib/typescript/index.d.ts.map +1 -1
  145. package/lib/typescript/theta-repository/access-point.d.ts +36 -0
  146. package/lib/typescript/theta-repository/access-point.d.ts.map +1 -0
  147. package/lib/typescript/theta-repository/digest-auth.d.ts +17 -0
  148. package/lib/typescript/theta-repository/digest-auth.d.ts.map +1 -0
  149. package/lib/typescript/theta-repository/index.d.ts +10 -0
  150. package/lib/typescript/theta-repository/index.d.ts.map +1 -0
  151. package/lib/typescript/theta-repository/options/index.d.ts +13 -0
  152. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -0
  153. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +22 -0
  154. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -0
  155. package/lib/typescript/theta-repository/options/option-camera-mode.d.ts +19 -0
  156. package/lib/typescript/theta-repository/options/option-camera-mode.d.ts.map +1 -0
  157. package/lib/typescript/theta-repository/options/option-network-type.d.ts +19 -0
  158. package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -0
  159. package/lib/typescript/theta-repository/options/option-power-saving.d.ts +16 -0
  160. package/lib/typescript/theta-repository/options/option-power-saving.d.ts.map +1 -0
  161. package/lib/typescript/theta-repository/options/option-preview-format.d.ts +25 -0
  162. package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -0
  163. package/lib/typescript/theta-repository/options/option-proxy.d.ts +23 -0
  164. package/lib/typescript/theta-repository/options/option-proxy.d.ts.map +1 -0
  165. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts +33 -0
  166. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts.map +1 -0
  167. package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts +295 -0
  168. package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts.map +1 -0
  169. package/lib/typescript/theta-repository/options/option-time-shift.d.ts +54 -0
  170. package/lib/typescript/theta-repository/options/option-time-shift.d.ts.map +1 -0
  171. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +18 -0
  172. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -0
  173. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +15 -0
  174. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -0
  175. package/lib/typescript/theta-repository/options/options.d.ts +566 -0
  176. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -0
  177. package/lib/typescript/theta-repository/theta-config.d.ts +20 -0
  178. package/lib/typescript/theta-repository/theta-config.d.ts.map +1 -0
  179. package/lib/typescript/theta-repository/theta-files.d.ts +45 -0
  180. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -0
  181. package/lib/typescript/theta-repository/theta-info.d.ts +34 -0
  182. package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -0
  183. package/lib/typescript/theta-repository/theta-meta.d.ts +38 -0
  184. package/lib/typescript/theta-repository/theta-meta.d.ts.map +1 -0
  185. package/lib/typescript/theta-repository/theta-plugin.d.ts +26 -0
  186. package/lib/typescript/theta-repository/theta-plugin.d.ts.map +1 -0
  187. package/lib/typescript/theta-repository/theta-repository.d.ts +333 -0
  188. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -0
  189. package/lib/typescript/theta-repository/theta-state.d.ts +150 -0
  190. package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -0
  191. package/lib/typescript/theta-repository/theta-timeout.d.ts +22 -0
  192. package/lib/typescript/theta-repository/theta-timeout.d.ts.map +1 -0
  193. package/package.json +1 -1
  194. package/src/capture/capture.ts +124 -0
  195. package/src/capture/index.ts +4 -0
  196. package/src/capture/notify.ts +27 -0
  197. package/src/capture/photo-capture.ts +62 -0
  198. package/src/capture/time-shift-capture.ts +99 -0
  199. package/src/capture/video-capture.ts +69 -0
  200. package/src/index.tsx +3 -1243
  201. package/src/theta-repository/access-point.ts +38 -0
  202. package/src/theta-repository/digest-auth.ts +16 -0
  203. package/src/theta-repository/index.ts +9 -0
  204. package/src/theta-repository/options/index.ts +13 -0
  205. package/src/theta-repository/options/option-camera-control-source.ts +24 -0
  206. package/src/theta-repository/options/option-camera-mode.ts +20 -0
  207. package/src/theta-repository/options/option-network-type.ts +20 -0
  208. package/src/theta-repository/options/option-power-saving.ts +18 -0
  209. package/src/theta-repository/options/option-preview-format.ts +27 -0
  210. package/src/theta-repository/options/option-proxy.ts +22 -0
  211. package/src/theta-repository/options/option-shooting-method.ts +36 -0
  212. package/src/theta-repository/options/option-shutter-speed.ts +360 -0
  213. package/src/theta-repository/options/option-time-shift.ts +59 -0
  214. package/src/theta-repository/options/option-white-balance-auto-strength.ts +19 -0
  215. package/src/theta-repository/options/option-wlan-frequency.ts +16 -0
  216. package/src/theta-repository/options/options.ts +622 -0
  217. package/src/theta-repository/theta-config.ts +20 -0
  218. package/src/theta-repository/theta-files.ts +49 -0
  219. package/src/theta-repository/theta-info.ts +35 -0
  220. package/src/theta-repository/theta-meta.ts +39 -0
  221. package/src/theta-repository/theta-plugin.ts +25 -0
  222. package/src/theta-repository/theta-repository.ts +527 -0
  223. package/src/theta-repository/theta-state.ts +164 -0
  224. package/src/theta-repository/theta-timeout.ts +21 -0
  225. package/theta-client-react-native.podspec +1 -1
@@ -1,975 +1,6 @@
1
- /** Static attributes of Theta. */
2
- export type ThetaInfo = {
3
- /** Theta model name */
4
- model: string;
5
- /** Theta serial number */
6
- serialNumber: string;
7
- /** Theta firmware version */
8
- firmwareVersion: string;
9
- /** true if Theta has GPS. */
10
- hasGps: boolean;
11
- /** true if Theta has Gyroscope */
12
- hasGyro: boolean;
13
- /** Number of seconds since Theta boot */
14
- uptime: number;
15
- };
16
- /** Battery charging state constants */
17
- export declare const ChargingStateEnum: {
18
- /** Charging */
19
- readonly CHARGING: "CHARGING";
20
- /** Charging completed */
21
- readonly COMPLETED: "COMPLETED";
22
- /** Not charging */
23
- readonly NOT_CHARGING: "NOT_CHARGING";
24
- };
25
- /** type definition of ChargingStateEnum */
26
- export type ChargingStateEnum = typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
27
- /** Mutable values representing Theta status. */
28
- export type ThetaState = {
29
- /** Fingerprint (unique identifier) of the current camera state */
30
- fingerprint: string;
31
- /** Battery level between 0.0 and 1.0 */
32
- batteryLevel: number;
33
- /** Charging state */
34
- chargingState: ChargingStateEnum;
35
- /** true if record to SD card */
36
- isSdCard: boolean;
37
- /** Recorded time of movie (seconds) */
38
- recordedTime: number;
39
- /** Recordable time of movie (seconds) */
40
- recordableTime: number;
41
- /** URL of the last saved file */
42
- latestFileUrl: string;
43
- };
44
- /** File information in Theta. */
45
- export type FileInfo = {
46
- /** File name. */
47
- name: string;
48
- /** File size in bytes. */
49
- size: number;
50
- /** File creation time in the format "YYYY:MM:DD HH:MM:SS". */
51
- dateTime: string;
52
- /** You can get a thumbnail image using HTTP GET to [thumbnailUrl]. */
53
- thumbnailUrl: string;
54
- /** fileUrl You can get a file using HTTP GET to [fileUrl]. */
55
- fileUrl: string;
56
- };
57
- /** File type in Theta. */
58
- export declare const FileTypeEnum: {
59
- /** still image files. */
60
- readonly IMAGE: "IMAGE";
61
- /** video files. */
62
- readonly VIDEO: "VIDEO";
63
- /** all files. */
64
- readonly ALL: "ALL";
65
- };
66
- /** type definition of FileTypeEnum */
67
- export type FileTypeEnum = typeof FileTypeEnum[keyof typeof FileTypeEnum];
68
- /** Aperture value. */
69
- export declare const ApertureEnum: {
70
- /** AUTO(0) */
71
- readonly APERTURE_AUTO: "APERTURE_AUTO";
72
- /** 2.0F RICOH THETA V or prior */
73
- readonly APERTURE_2_0: "APERTURE_2_0";
74
- /** 2.1F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
75
- readonly APERTURE_2_1: "APERTURE_2_1";
76
- /** 2.4F RICOH THETA X or later */
77
- readonly APERTURE_2_4: "APERTURE_2_4";
78
- /** 3.5F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
79
- readonly APERTURE_3_5: "APERTURE_3_5";
80
- /** 5.6F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
81
- readonly APERTURE_5_6: "APERTURE_5_6";
82
- };
83
- /** type definition of ApertureEnum */
84
- export type ApertureEnum = typeof ApertureEnum[keyof typeof ApertureEnum];
85
- /** Shooting mode. */
86
- export declare const CaptureModeEnum: {
87
- /** Still image capture mode */
88
- readonly IMAGE: "IMAGE";
89
- /** Video capture mode */
90
- readonly VIDEO: "VIDEO";
91
- };
92
- /** type definition of CaptureModeEnum */
93
- export type CaptureModeEnum = typeof CaptureModeEnum[keyof typeof CaptureModeEnum];
94
- /** Exposure compensation (EV). */
95
- export declare const ExposureCompensationEnum: {
96
- /** -2.0 */
97
- readonly M_2_0: "M2_0";
98
- /** -1.7 */
99
- readonly M_1_7: "M1_7";
100
- /** -1.3 */
101
- readonly M_1_3: "M1_3";
102
- /** -1.0 */
103
- readonly M_1_0: "M1_0";
104
- /** -0.7 */
105
- readonly M_0_7: "M0_7";
106
- /** -0.3 */
107
- readonly M_0_3: "M0_3";
108
- /** 0 */
109
- readonly ZERO: "ZERO";
110
- /** 0.3 */
111
- readonly P_0_3: "P0_3";
112
- /** 0.7 */
113
- readonly P_0_7: "P0_7";
114
- /** 1.0 */
115
- readonly P_1_0: "P1_0";
116
- /** 1.3 */
117
- readonly P_1_3: "P1_3";
118
- /** 1.7 */
119
- readonly P_1_7: "P1_7";
120
- /** 2.0 */
121
- readonly P_2_0: "P2_0";
122
- };
123
- /** type definition of ExposureCompensationEnum */
124
- export type ExposureCompensationEnum = typeof ExposureCompensationEnum[keyof typeof ExposureCompensationEnum];
125
- /** Operating time (sec.) of the self-timer. */
126
- export declare const ExposureDelayEnum: {
127
- /** Disable self-timer. */
128
- readonly DELAY_OFF: "DELAY_OFF";
129
- /** a second */
130
- readonly DELAY_1: "DELAY_1";
131
- /** 2 seconds */
132
- readonly DELAY_2: "DELAY_2";
133
- /** 3 seconds */
134
- readonly DELAY_3: "DELAY_3";
135
- /** 4 seconds */
136
- readonly DELAY_4: "DELAY_4";
137
- /** 5 seconds */
138
- readonly DELAY_5: "DELAY_5";
139
- /** 6 seconds */
140
- readonly DELAY_6: "DELAY_6";
141
- /** 7 seconds */
142
- readonly DELAY_7: "DELAY_7";
143
- /** 8 seconds */
144
- readonly DELAY_8: "DELAY_8";
145
- /** 9 seconds */
146
- readonly DELAY_9: "DELAY_9";
147
- /** 10 seconds */
148
- readonly DELAY_10: "DELAY_10";
149
- };
150
- /** type definition of ExposureDelayEnum */
151
- export type ExposureDelayEnum = typeof ExposureDelayEnum[keyof typeof ExposureDelayEnum];
152
- /** Exposure program. The exposure settings that take priority can be selected. */
153
- export declare const ExposureProgramEnum: {
154
- /** Manual program */
155
- readonly MANUAL: "MANUAL";
156
- /** Normal program */
157
- readonly NORMAL_PROGRAM: "NORMAL_PROGRAM";
158
- /** Aperture priority program */
159
- readonly APERTURE_PRIORITY: "APERTURE_PRIORITY";
160
- /** Shutter priority program */
161
- readonly SHUTTER_PRIORITY: "SHUTTER_PRIORITY";
162
- /** ISO priority program */
163
- readonly ISO_PRIORITY: "ISO_PRIORITY";
164
- };
165
- /** type definition of ExposureProgramEnum */
166
- export type ExposureProgramEnum = typeof ExposureProgramEnum[keyof typeof ExposureProgramEnum];
167
- /** file format type in theta */
168
- export declare const FileFormatTypeEnum: {
169
- /** jpeg image */
170
- readonly JPEG: "JPEG";
171
- /** mp4 video */
172
- readonly MP4: "MP4";
173
- /** raw+ image */
174
- readonly RAW: "RAW";
175
- };
176
- /** type definition of FileFormatTypeEnum */
177
- export type FileFormatTypeEnum = typeof FileFormatTypeEnum[keyof typeof FileFormatTypeEnum];
178
- /** Photo image format */
179
- export declare const PhotoFileFormatEnum: {
180
- /** jpeg 2048 x 1024 */
181
- readonly IMAGE_2K: "IMAGE_2K";
182
- /** jpeg 5376 x 2688 */
183
- readonly IMAGE_5K: "IMAGE_5K";
184
- /** jpeg 6720 x 3360 */
185
- readonly IMAGE_6_7K: "IMAGE_6_7K";
186
- /** row+ 6720 x 3360 */
187
- readonly RAW_P_6_7K: "RAW_P_6_7K";
188
- /** jpeg 5504 x 2752 */
189
- readonly IMAGE_5_5K: "IMAGE_5_5K";
190
- /** jpeg 11008 x 5504 */
191
- readonly IMAGE_11K: "IMAGE_11K";
192
- };
193
- /** Video image format */
194
- export declare const VideoFileFormatEnum: {
195
- /** mp4 1280 x 570 */
196
- readonly VIDEO_HD: "VIDEO_HD";
197
- /** mp4 1920 x 1080 */
198
- readonly VIDEO_FULL_HD: "VIDEO_FULL_HD";
199
- /** mp4 1920 x 960 */
200
- readonly VIDEO_2K: "VIDEO_2K";
201
- /** mp4 3840 x 1920 */
202
- readonly VIDEO_4K: "VIDEO_4K";
203
- /** mp4 1920 x 960 30fps */
204
- readonly VIDEO_2K_30F: "VIDEO_2K_30F";
205
- /** mp4 1920 x 960 60fps */
206
- readonly VIDEO_2K_60F: "VIDEO_2K_60F";
207
- /** mp4 3840 x 1920 30fps */
208
- readonly VIDEO_4K_30F: "VIDEO_4K_30F";
209
- /** mp4 3840 x 1920 60fps */
210
- readonly VIDEO_4K_60F: "VIDEO_4K_60F";
211
- /** mp4 5760 x 2880 2fps */
212
- readonly VIDEO_5_7K_2F: "VIDEO_5_7K_2F";
213
- /** mp4 5760 x 2880 5fps */
214
- readonly VIDEO_5_7K_5F: "VIDEO_5_7K_5F";
215
- /** mp4 5760 x 2880 30fps */
216
- readonly VIDEO_5_7K_30F: "VIDEO_5_7K_30F";
217
- /** mp4 7680 x 3840 2fps */
218
- readonly VIDEO_7K_2F: "VIDEO_7K_2F";
219
- /** mp4 7680 x 3840 5fps */
220
- readonly VIDEO_7K_5F: "VIDEO_7K_5F";
221
- /** mp4 7680 x 3840 10fps */
222
- readonly VIDEO_7K_10F: "VIDEO_7K_10F";
223
- };
224
- /** type definition of PhotoFileFormatEnum */
225
- export type PhotoFileFormatEnum = typeof PhotoFileFormatEnum[keyof typeof PhotoFileFormatEnum];
226
- /** type definition of VideoFileFormatEnum */
227
- export type VideoFileFormatEnum = typeof VideoFileFormatEnum[keyof typeof VideoFileFormatEnum];
228
- /** Image processing filter. */
229
- export declare const FilterEnum: {
230
- /** No filter. */
231
- readonly OFF: "OFF";
232
- /** Noise reduction. */
233
- readonly NOISE_REDUCTION: "NOISE_REDUCTION";
234
- /** HDR. */
235
- readonly HDR: "HDR";
236
- };
237
- /** type definition of FilterEnum */
238
- export type FilterEnum = typeof FilterEnum[keyof typeof FilterEnum];
239
- /** GPS information */
240
- export type GpsInfo = {
241
- /** Latitude (-90.000000 – 90.000000) */
242
- latitude: number;
243
- /** Longitude (-180.000000 – 180.000000) */
244
- longitude: number;
245
- /** Altitude (meters) */
246
- altitude: number;
247
- /** Location information acquisition time */
248
- dateTimeZone: string;
249
- };
250
- /** Turns position information assigning ON/OFF. */
251
- export declare const GpsTagRecordingEnum: {
252
- /** Position information assigning ON. */
253
- readonly ON: "ON";
254
- /** Position information assigning OFF. */
255
- readonly OFF: "OFF";
256
- };
257
- /** type definition of GpsTagRecordingEnum */
258
- export type GpsTagRecordingEnum = typeof GpsTagRecordingEnum[keyof typeof GpsTagRecordingEnum];
259
- /** ISO sensitivity. */
260
- export declare const IsoEnum: {
261
- /** AUTO (0) */
262
- readonly ISO_AUTO: "ISO_AUTO";
263
- /** 50 */
264
- readonly ISO_50: "ISO_50";
265
- /** 64 */
266
- readonly ISO_64: "ISO_64";
267
- /** 80 */
268
- readonly ISO_80: "ISO_80";
269
- /** 100 */
270
- readonly ISO_100: "ISO_100";
271
- /** 125 */
272
- readonly ISO_125: "ISO_125";
273
- /** 160 */
274
- readonly ISO_160: "ISO_160";
275
- /** 200 */
276
- readonly ISO_200: "ISO_200";
277
- /** 250 */
278
- readonly ISO_250: "ISO_250";
279
- /** 320 */
280
- readonly ISO_320: "ISO_320";
281
- /** 400 */
282
- readonly ISO_400: "ISO_400";
283
- /** 500 */
284
- readonly ISO_500: "ISO_500";
285
- /** 640 */
286
- readonly ISO_640: "ISO_640";
287
- /** 800 */
288
- readonly ISO_800: "ISO_800";
289
- /** 1000 */
290
- readonly ISO_1000: "ISO_1000";
291
- /** 1250 */
292
- readonly ISO_1250: "ISO_1250";
293
- /** 1600 */
294
- readonly ISO_1600: "ISO_1600";
295
- /** 2000 */
296
- readonly ISO_2000: "ISO_2000";
297
- /** 2500 */
298
- readonly ISO_2500: "ISO_2500";
299
- /** 3200 */
300
- readonly ISO_3200: "ISO_3200";
301
- /** 4000 */
302
- readonly ISO_4000: "ISO_4000";
303
- /** 5000 */
304
- readonly ISO_5000: "ISO_5000";
305
- /** 6400 */
306
- readonly ISO_6400: "ISO_6400";
307
- };
308
- /** type definition IsoEnum */
309
- export type IsoEnum = typeof IsoEnum[keyof typeof IsoEnum];
310
- /** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
311
- export declare const IsoAutoHighLimitEnum: {
312
- /** 100 */
313
- readonly ISO_100: "ISO_100";
314
- /** 125 */
315
- readonly ISO_125: "ISO_125";
316
- /** 160 */
317
- readonly ISO_160: "ISO_160";
318
- /** 200 */
319
- readonly ISO_200: "ISO_200";
320
- /** 250 */
321
- readonly ISO_250: "ISO_250";
322
- /** 320 */
323
- readonly ISO_320: "ISO_320";
324
- /** 400 */
325
- readonly ISO_400: "ISO_400";
326
- /** 500 */
327
- readonly ISO_500: "ISO_500";
328
- /** 640 */
329
- readonly ISO_640: "ISO_640";
330
- /** 800 */
331
- readonly ISO_800: "ISO_800";
332
- /** 1000 */
333
- readonly ISO_1000: "ISO_1000";
334
- /** 1250 */
335
- readonly ISO_1250: "ISO_1250";
336
- /** 1600 */
337
- readonly ISO_1600: "ISO_1600";
338
- /** 2000 */
339
- readonly ISO_2000: "ISO_2000";
340
- /** 2500 */
341
- readonly ISO_2500: "ISO_2500";
342
- /** 3200 */
343
- readonly ISO_3200: "ISO_3200";
344
- /** 4000 */
345
- readonly ISO_4000: "ISO_4000";
346
- /** 5000 */
347
- readonly ISO_5000: "ISO_5000";
348
- /** 6400 */
349
- readonly ISO_6400: "ISO_6400";
350
- };
351
- /** type definition of IsoAutoHighLimitEnum */
352
- export type IsoAutoHighLimitEnum = typeof IsoAutoHighLimitEnum[keyof typeof IsoAutoHighLimitEnum];
353
- /** language */
354
- export declare const LanguageEnum: {
355
- /** german */
356
- readonly DE: "DE";
357
- /** british english */
358
- readonly EN_GB: "EN_GB";
359
- /** us english */
360
- readonly EN_US: "EN_US";
361
- /** french */
362
- readonly FR: "FR";
363
- /** italian */
364
- readonly IT: "IT";
365
- /** japanese */
366
- readonly JA: "JA";
367
- /** korean */
368
- readonly KO: "KO";
369
- /** chinese */
370
- readonly ZH_CN: "ZH_CH";
371
- /** taiwan chinese */
372
- readonly ZH_TW: "ZH_TW";
373
- };
374
- /** type definition of LanguageEnum */
375
- export type LanguageEnum = typeof LanguageEnum[keyof typeof LanguageEnum];
376
- /** Maximum recordable time (in seconds) of the camera */
377
- export declare const MaxRecordableTimeEnum: {
378
- /** 180 seconds for SC2 only. */
379
- readonly RECORDABLE_TIME_180: "RECORDABLE_TIME_180";
380
- /** 300 seconds for other than SC2. */
381
- readonly RECORDABLE_TIME_300: "RECORDABLE_TIME_300";
382
- /** 1500 seconds for other than SC2. */
383
- readonly RECORDABLE_TIME_1500: "RECORDABLE_TIME_1500";
384
- };
385
- /** type definition of MaxRecordableTimeEnum */
386
- export type MaxRecordableTimeEnum = typeof MaxRecordableTimeEnum[keyof typeof MaxRecordableTimeEnum];
387
- /** Length of standby time before the camera automatically powers OFF. */
388
- export declare const OffDelayEnum: {
389
- /** Do not turn power off. */
390
- readonly DISABLE: "DISABLE";
391
- /** Power off after 5 minutes.(300sec) */
392
- readonly OFF_DELAY_5M: "OFF_DELAY_5M";
393
- /** Power off after 10 minutes.(600sec) */
394
- readonly OFF_DELAY_10M: "OFF_DELAY_10M";
395
- /** Power off after 15 minutes.(900sec) */
396
- readonly OFF_DELAY_15M: "OFF_DELAY_15M";
397
- /** Power off after 30 minutes.(1,800sec) */
398
- readonly OFF_DELAY_30M: "OFF_DELAY_30M";
399
- };
400
- /** type definition of OffDelayEnum */
401
- export type OffDelayEnum = typeof OffDelayEnum[keyof typeof OffDelayEnum] | number;
402
- /** Length of standby time before the camera enters the sleep mode. */
403
- export declare const SleepDelayEnum: {
404
- /** Do not turn sleep mode. */
405
- readonly DISABLE: "DISABLE";
406
- /** sleep mode after 3 minutes.(180seconds) */
407
- readonly SLEEP_DELAY_3M: "SLEEP_DELAY_3M";
408
- /** sleep mode after 5 minutes.(300seconds) */
409
- readonly SLEEP_DELAY_5M: "SLEEP_DELAY_5M";
410
- /** sleep mode after 7 minutes.(420seconds) */
411
- readonly SLEEP_DELAY_7M: "SLEEP_DELAY_7M";
412
- /** sleep mode after 10 minutes.(600seconds) */
413
- readonly SLEEP_DELAY_10M: "SLEEP_DELAY_10M";
414
- };
415
- /** type definition of SleepDelayEnum */
416
- export type SleepDelayEnum = typeof SleepDelayEnum[keyof typeof SleepDelayEnum] | number;
417
- /** White balance. */
418
- export declare const WhiteBalanceEnum: {
419
- /** Automatic */
420
- readonly AUTO: "AUTO";
421
- /** Outdoor */
422
- readonly DAYLIGHT: "DAYLIGHT";
423
- /** Shade */
424
- readonly SHADE: "SHADE";
425
- /** Cloudy */
426
- readonly CLOUDY_DAYLIGHT: "CLOUDY_DAYLIGHT";
427
- /** Incandescent light 1 */
428
- readonly INCANDESCENT: "INCANDESCENT";
429
- /** Incandescent light 2 */
430
- readonly WARM_WHITE_FLUORESCENT: "WARM_WHITE_FLUORESCENT";
431
- /** Fluorescent light 1 (daylight) */
432
- readonly DAYLIGHT_FLUORESCENT: "DAYLIGHT_FLUORESCENT";
433
- /** Fluorescent light 2 (natural white) */
434
- readonly DAYWHITE_FLUORESCENT: "DAYWHITE_FLUORESCENT";
435
- /** Fluorescent light 3 (white) */
436
- readonly FLUORESCENT: "FLUORESCENT";
437
- /** Fluorescent light 4 (light bulb color) */
438
- readonly BULB_FLUORESCENT: "BULB_FLUORESCENT";
439
- /** CT settings (specified by the _colorTemperature option) */
440
- readonly COLOR_TEMPERATURE: "COLOR_TEMPERATURE";
441
- /** Underwater */
442
- readonly UNDERWATER: "UNDERWATER";
443
- };
444
- /** type definition of WhiteBalanceEnum */
445
- export type WhiteBalanceEnum = typeof WhiteBalanceEnum[keyof typeof WhiteBalanceEnum];
446
- /** Camera setting options name. */
447
- export declare const OptionNameEnum: {
448
- /** aperture */
449
- readonly Aperture: "Aperture";
450
- /** captureMode */
451
- readonly CaptureMode: "CaptureMode";
452
- /** colorTemperature */
453
- readonly ColorTemperature: "ColorTemperature";
454
- /** dateTimeZone */
455
- readonly DateTimeZone: "DateTimeZone";
456
- /** exposureCompensation */
457
- readonly ExposureCompensation: "ExposureCompensation";
458
- /** exposureDelay */
459
- readonly ExposureDelay: "ExposureDelay";
460
- /** exposureProgram */
461
- readonly ExposureProgram: "ExposureProgram";
462
- /** fileFormat */
463
- readonly FileFormat: "FileFormat";
464
- /** filter */
465
- readonly Filter: "Filter";
466
- /** gpsInfo */
467
- readonly GpsInfo: "GpsInfo";
468
- /** isGpsOn */
469
- readonly IsGpsOn: "IsGpsOn";
470
- /** iso */
471
- readonly Iso: "Iso";
472
- /** isoAutoHighLimit */
473
- readonly IsoAutoHighLimit: "IsoAutoHighLimit";
474
- /** language */
475
- readonly Language: "Language";
476
- /** maxRecordableTime */
477
- readonly MaxRecordableTime: "MaxRecordableTime";
478
- /** offDelay */
479
- readonly OffDelay: "OffDelay";
480
- /** sleepDelay */
481
- readonly SleepDelay: "SleepDelay";
482
- /** remainingPictures */
483
- readonly RemainingPictures: "RemainingPictures";
484
- /** remainingVideoSeconds */
485
- readonly RemainingVideoSeconds: "RemainingVideoSeconds";
486
- /** remainingSpace */
487
- readonly RemainingSpace: "RemainingSpace";
488
- /** totalSpace */
489
- readonly TotalSpace: "TotalSpace";
490
- /** shutterVolume */
491
- readonly ShutterVolume: "ShutterVolume";
492
- /** whiteBalance */
493
- readonly WhiteBalance: "WhiteBalance";
494
- };
495
- /** type definition of OptionNameEnum */
496
- export type OptionNameEnum = typeof OptionNameEnum[keyof typeof OptionNameEnum];
497
- /** camera setting options */
498
- export type Options = {
499
- /** Aperture value. */
500
- aperture?: ApertureEnum;
501
- /** Shooting mode. */
502
- captureMode?: CaptureModeEnum;
503
- /** Color temperature of the camera (Kelvin). */
504
- colorTemperature?: number;
505
- /** Current system time of RICOH THETA. Setting another options will result in an error. */
506
- dateTimeZone?: string;
507
- /** Exposure compensation (EV). */
508
- exposureCompensation?: ExposureCompensationEnum;
509
- /** Operating time (sec.) of the self-timer. */
510
- exposureDelay?: ExposureDelayEnum;
511
- /** Exposure program. The exposure settings that take priority can be selected. */
512
- exposureProgram?: ExposureProgramEnum;
513
- /** Image format used in shooting. */
514
- fileFormat?: PhotoFileFormatEnum | VideoFileFormatEnum;
515
- /** Image processing filter. */
516
- filter?: FilterEnum;
517
- /** GPS location information. */
518
- gpsInfo?: GpsInfo;
519
- /** Turns position information assigning ON/OFF. */
520
- isGpsOn?: boolean;
521
- /** ISO sensitivity */
522
- iso?: IsoEnum;
523
- /** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
524
- isoAutoHighLimit?: IsoAutoHighLimitEnum;
525
- /** Language used in camera OS. */
526
- language?: LanguageEnum;
527
- /** Maximum recordable time (in seconds) of the camera. */
528
- maxRecordableTime?: MaxRecordableTimeEnum;
529
- /** Length of standby time before the camera automatically powers OFF. */
530
- offDelay?: OffDelayEnum;
531
- /** Length of standby time before the camera enters the sleep mode. */
532
- sleepDelay?: SleepDelayEnum;
533
- /** The estimated remaining number of shots for the current shooting settings. */
534
- remainingPictures?: number;
535
- /** The estimated remaining shooting time (sec.) for the current video shooting settings. */
536
- remainingVideoSeconds?: number;
537
- /** Remaining usable storage space (byte). */
538
- remainingSpace?: number;
539
- /** Total storage space (byte). */
540
- totalSpace?: number;
541
- /** Shutter volume. */
542
- shutterVolume?: number;
543
- /** White balance. */
544
- whiteBalance?: WhiteBalanceEnum;
545
- /** GPS setting used in only capturing */
546
- _gpsTagRecording?: GpsTagRecordingEnum;
547
- };
548
- /**
549
- * initialize theta client sdk
550
- *
551
- * @function initialize
552
- * @param {string} endPoint optional endpoint of camera
553
- * @return promise of boolean result
554
- **/
555
- export declare function initialize(endPoint?: string): Promise<boolean>;
556
- /**
557
- * Get basic information about Theta.
558
- *
559
- * @function getThetaInfo
560
- * @return promise of ThetaInfo
561
- **/
562
- export declare function getThetaInfo(): Promise<ThetaInfo>;
563
- /**
564
- * Get current state of Theta.
565
- *
566
- * @function getThetaState
567
- * @return promise of ThetaState
568
- **/
569
- export declare function getThetaState(): Promise<ThetaState>;
570
- /**
571
- * Lists information of images and videos in Theta.
572
- *
573
- * @function listFiles
574
- * @param {FileTypeEnum} fileType Type of the files to be listed.
575
- * @param {number} startPosition The position of the first file to be
576
- * returned in the list. 0 represents the first file. If
577
- * startPosition is larger than the position of the last file, an
578
- * empty list is returned.
579
- * @param {number} entryCount Desired number of entries to return. If
580
- * entryCount is more than the number of remaining files, just
581
- * return entries of actual remaining files.
582
- * @return promise of A list of file information.
583
- */
584
- export declare function listFiles(fileTypeEnum: FileTypeEnum, startPosition: number | undefined, entryCount: number): Promise<FileInfo[]>;
585
- /**
586
- * Delete files in Theta.
587
- *
588
- * @function deleteFiles
589
- * @param {string[]} fileUrls URLs of the file to be deleted.
590
- * @return promise of boolean result
591
- */
592
- export declare function deleteFiles(fileUrls: string[]): Promise<boolean>;
593
- /**
594
- * Delete all files in Theta.
595
- *
596
- * @function deleteAllFiles
597
- * @return promise of boolean result
598
- */
599
- export declare function deleteAllFiles(): Promise<boolean>;
600
- /**
601
- * Delete all image files in Theta.
602
- *
603
- * @function deleteAllImageFiles
604
- * @return promise of boolean result
605
- */
606
- export declare function deleteAllImageFiles(): Promise<boolean>;
607
- /**
608
- * Delete all video files in Theta.
609
- *
610
- * @function deleteAllVideoFiles
611
- * @return promise of boolean result
612
- */
613
- export declare function deleteAllVideoFiles(): Promise<boolean>;
614
- /**
615
- * Acquires the properties and property support specifications for
616
- * shooting, the camera, etc.
617
- *
618
- * @function getOptions
619
- * @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
620
- * @return promise of Options acquired
621
- */
622
- export declare function getOptions(optionNames: OptionNameEnum[]): Promise<Options>;
623
- /**
624
- * Property settings for shooting, the camera, etc.
625
- *
626
- * @function setOptions
627
- * @param {Options} options Camera setting options.
628
- * @return promise of boolean result
629
- */
630
- export declare function setOptions(options: Options): Promise<boolean>;
631
1
  /** theta frame event name */
632
2
  export declare const THETA_EVENT_NAME: any;
633
- /**
634
- * Start live preview.
635
- * preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
636
- * {
637
- * "data": "DataURL of JPEG Frame"
638
- * }
639
- *
640
- * @function StartLivePreview
641
- * @return promise of boolean result
642
- */
643
- export declare function getLivePreview(): Promise<boolean>;
644
- /**
645
- * Stop live preview.
646
- *
647
- * @function StopLivePreview
648
- */
649
- export declare function stopLivePreview(): void;
650
- /**
651
- * PhotoCapture class
652
- */
653
- export declare class PhotoCapture {
654
- /**
655
- * @return promise of token file url
656
- */
657
- takePicture(): Promise<string>;
658
- }
659
- /**
660
- * Capture Builder class
661
- */
662
- export declare class CaptureBuilder {
663
- /** capture options */
664
- options: Options;
665
- /** construct capture builder instance */
666
- constructor();
667
- /**
668
- * Set aperture value.
669
- * @param {ApertureEnum} aperture aperture value to set
670
- * @return CaptureBuilder
671
- */
672
- setAperture(aperture: ApertureEnum): CaptureBuilder;
673
- /**
674
- * Set color temperature of the camera (Kelvin).
675
- * @param {number} kelvin Color temperature to set
676
- * @return CaptureBuilder
677
- */
678
- setColorTemperature(kelvin: number): CaptureBuilder;
679
- /**
680
- * Set exposure compensation (EV).
681
- * @param {ExposureCompensationEnum} value Exposure compensation to set
682
- * @return CaptureBuilder
683
- */
684
- setExposureCompensation(value: ExposureCompensationEnum): CaptureBuilder;
685
- /**
686
- * Set operating time (sec.) of the self-timer.
687
- * @param {ExposureDelayEnum} delay Operating time to set
688
- * @return CaptureBuilder
689
- */
690
- setExposureDelay(delay: ExposureDelayEnum): CaptureBuilder;
691
- /**
692
- * Set exposure program. The exposure settings that take priority can be selected.
693
- * @param {ExposureProgramEnum} program Exposure program to set
694
- * @return CaptureBuilder
695
- */
696
- setExposureProgram(program: ExposureProgramEnum): CaptureBuilder;
697
- /**
698
- * Set GPS information.
699
- * @param {GpsInfo} gpsInfo GPS information to set
700
- * @return CaptureBuilder
701
- */
702
- setGpsInfo(gpsInfo: GpsInfo): CaptureBuilder;
703
- /**
704
- * Set turns position information assigning ON/OFF.
705
- * @param {GpsTagRecordingEnum} value Turns position information assigning ON/OFF to set
706
- * @return CaptureBuilder
707
- */
708
- setGpsTagRecording(value: GpsTagRecordingEnum): CaptureBuilder;
709
- /**
710
- * Set ISO sensitivity.
711
- * @param {IsoEnum} iso ISO sensitivity to set
712
- * @return CaptureBuilder
713
- */
714
- setIso(iso: IsoEnum): CaptureBuilder;
715
- /**
716
- * Set ISO sensitivity upper limit when ISO sensitivity is set to automatic.
717
- * @param {IsoAutoHighLimitEnum} iso ISO sensitivity upper limit to set
718
- * @return CaptureBuilder
719
- */
720
- setIsoAutoHighLimit(iso: IsoAutoHighLimitEnum): CaptureBuilder;
721
- /**
722
- * Set white balance.
723
- * @param {WhiteBalanceEnum} whiteBalance White balance to set
724
- * @return CaptureBuilder
725
- */
726
- setWhiteBalance(whiteBalance: WhiteBalanceEnum): CaptureBuilder;
727
- }
728
- /**
729
- * PhotoCaptureBuilder class
730
- */
731
- export declare class PhotoCaptureBuilder extends CaptureBuilder {
732
- /** construct PhotoCaptureBuilder instance */
733
- constructor();
734
- /**
735
- * Set photo file format.
736
- * @param {PhotoFileFormatEnum} fileFormat Photo file format to set
737
- * @return PhotoCaptureBuilder
738
- */
739
- setFileFormat(fileFormat: PhotoFileFormatEnum): PhotoCaptureBuilder;
740
- /**
741
- * Set image processing filter.
742
- * @param {FilterEnum} filter Image processing filter to set
743
- * @return PhotoCaptureBuilder
744
- */
745
- setFilter(filter: FilterEnum): PhotoCaptureBuilder;
746
- /**
747
- * Builds an instance of a PhotoCapture that has all the combined
748
- * parameters of the Options that have been added to the Builder.
749
- *
750
- * @return promise of PhotoCapture instance
751
- */
752
- build(): Promise<PhotoCapture>;
753
- }
754
- /**
755
- * Get PhotoCaptureBuilder for take a picture.
756
- *
757
- * @function getPhotoCaptureBuilder
758
- * @return created PhotoCaptureBuilder
759
- */
760
- export declare function getPhotoCaptureBuilder(): PhotoCaptureBuilder;
761
- /**
762
- * VideoCapture class
763
- */
764
- export declare class VideoCapture {
765
- /**
766
- * start video capture
767
- * @return promise of captured file url
768
- */
769
- startCapture(): Promise<string>;
770
- /**
771
- * stop video capture
772
- */
773
- stopCapture(): void;
774
- }
775
- /**
776
- * VideoCaptureBuilder class
777
- */
778
- export declare class VideoCaptureBuilder extends CaptureBuilder {
779
- /** construct VideoCaptureBuilder instance */
780
- constructor();
781
- /**
782
- * Set video file format.
783
- * @param {VideoFileFormatEnum} fileFormat Video file format to set
784
- * @return VideoCaptureBuilder
785
- */
786
- setFileFormat(fileFormat: VideoFileFormatEnum): VideoCaptureBuilder;
787
- /**
788
- * Set maximum recordable time (in seconds) of the camera.
789
- * @param {MaxRecordableTimeEnum} time Maximum recordable time to set
790
- * @return VideoCaptureBuilder
791
- */
792
- setMaxRecordableTime(time: MaxRecordableTimeEnum): VideoCaptureBuilder;
793
- /**
794
- * Builds an instance of a VideoCapture that has all the combined
795
- * parameters of the Options that have been added to the Builder.
796
- *
797
- * @return promise of VideoCapture instance
798
- */
799
- build(): Promise<VideoCapture>;
800
- }
801
- /**
802
- * Get PhotoCapture.Builder for capture video.
803
- *
804
- * @function getVideoCaptureBuilder
805
- * @return created VideoCaptureBuilder instance
806
- */
807
- export declare function getVideoCaptureBuilder(): VideoCaptureBuilder;
808
- /**
809
- * exif information
810
- */
811
- export type Exif = {
812
- /** EXIF Support version */
813
- exifVersion: string;
814
- /** File created or updated date and time */
815
- dateTime: string;
816
- /** Image width (pixel). Theta X returns null. */
817
- imageWidth?: number;
818
- /** Image height (pixel). Theta X returns null. */
819
- imageLength?: number;
820
- /** GPS latitude if exists. */
821
- gpsLatitude?: number;
822
- /** GPS longitude if exists. */
823
- gpsLongitude?: number;
824
- };
825
- /**
826
- * Photo sphere XMP metadata of a still image.
827
- */
828
- export type Xmp = {
829
- /** Compass heading, for the center the image. Theta X returns null. */
830
- poseHeadingDegrees?: number;
831
- /** Image width (pixel). */
832
- fullPanoWidthPixels: number;
833
- /** Image height (pixel). */
834
- fullPanoHeightPixels: number;
835
- };
836
- /**
837
- * metadata of a still image
838
- */
839
- export type MetaInfo = {
840
- /** exif information */
841
- exif?: Exif;
842
- /** xmp information */
843
- xmp?: Xmp;
844
- };
845
- /**
846
- * Get metadata of a still image
847
- *
848
- * @function getMetadata
849
- * @param {string} fileUrl URL of a still image file to get metadata
850
- * @return promise of MetaInfo
851
- */
852
- export declare function getMetadata(fileUrl: string): Promise<MetaInfo>;
853
- /**
854
- * Reset all device settings and capture settings.
855
- * After reset, the camera will be restarted.
856
- *
857
- * @function reset
858
- * @return promise of boolean result
859
- */
860
- export declare function reset(): Promise<boolean>;
861
- /**
862
- * Restore setting to THETA
863
- *
864
- * @function restoreSettings
865
- * @return promise of boolean result
866
- */
867
- export declare function restoreSettings(): Promise<boolean>;
868
- /**
869
- * Stop running self-timer.
870
- *
871
- * @function stopSelfTimer
872
- * @return promise of boolean result
873
- */
874
- export declare function stopSelfTimer(): Promise<boolean>;
875
- /**
876
- * Converts the movie format of a saved movie.
877
- *
878
- * @function convertVideoFormats
879
- * @param {string} fileUrl URL of a saved movie file to convert
880
- * @param {boolean} toLowResolution If true generates lower resolution
881
- * video, otherwise same resolution.
882
- * @param {boolean} applyTopBottomCorrection apply Top/bottom
883
- * correction. This parameter is ignored on Theta X.
884
- * @return promise of URL of a converted movie file.
885
- */
886
- export declare function convertVideoFormats(fileUrl: string, toLowResolution: boolean, applyTopBottomCorrection: boolean): Promise<string>;
887
- /**
888
- * Cancels the movie format conversion.
889
- *
890
- * @function cancelVideoConvert
891
- * @return promise of boolean result
892
- */
893
- export declare function cancelVideoConvert(): Promise<boolean>;
894
- /**
895
- * Turns the wireless LAN off.
896
- *
897
- * @function finishWlan
898
- * @return promise of boolean result
899
- */
900
- export declare function finishWlan(): Promise<boolean>;
901
- /**
902
- * Enum for authentication mode.
903
- */
904
- export declare const AuthModeEnum: {
905
- /** None of authentication */
906
- readonly NONE: "NONE";
907
- /** Wep authentication */
908
- readonly WEP: "WEP";
909
- /** WPA PSK or WPA2 PSK authentication */
910
- readonly WPA: "WPA";
911
- };
912
- /** type definition of AuthModeEnum */
913
- export type AuthModeEnum = typeof AuthModeEnum[keyof typeof AuthModeEnum];
914
- /** Access point information. */
915
- export type AccessPoint = {
916
- /** SSID of the access point. */
917
- ssid: string;
918
- /** true if SSID stealth is enabled. */
919
- ssidStealth: boolean;
920
- /** Authentication mode. */
921
- authMode: AuthModeEnum;
922
- /** Connection priority 1 to 5. */
923
- connectionPriority: number;
924
- /** Using DHCP or not. */
925
- usingDhcp: boolean;
926
- /** IP address assigned to camera. */
927
- ipAddress?: string;
928
- /** Subnet Mask. */
929
- subnetMask?: string;
930
- /** Default Gateway. */
931
- defaultGateway?: string;
932
- };
933
- /**
934
- * Acquires the access point list used in client mode.
935
- *
936
- * @function listAccessPoints
937
- * @return promise of AccessPoint list
938
- */
939
- export declare function listAccessPoints(): Promise<AccessPoint[]>;
940
- /**
941
- * Set access point. IP address is set dynamically.
942
- *
943
- * @function setAccessPointDynamically
944
- * @param {string} ssid SSID of the access point.
945
- * @param {boolean} ssidStealth true if SSID stealth is enabled.
946
- * @param {AuthModeEnum} authMode Authentication mode.
947
- * @param {string} password Password. If authMode is "NONE", pass empty String.
948
- * @param {number} connectionPriority Connection priority 1 to 5.
949
- * @return promise of boolean result
950
- */
951
- export declare function setAccessPointDynamically(ssid: string, ssidStealth?: boolean, authMode?: AuthModeEnum, password?: string, connectionPriority?: number): Promise<boolean>;
952
- /**
953
- * Set access point. IP address is set statically.
954
- *
955
- * @function setAccessPointStatically
956
- * @param {string} ssid SSID of the access point.
957
- * @param {boolean} ssidStealth True if SSID stealth is enabled.
958
- * @param {AuthModeEnum} authMode Authentication mode.
959
- * @param {string} password Password. If authMode is "NONE", pass empty String.
960
- * @param {number} connectionPriority Connection priority 1 to 5.
961
- * @param {string} ipAddress IP address assigns to Theta.
962
- * @param {string} subnetMask Subnet mask.
963
- * @param {string} defaultGateway Default gateway.
964
- * @return promise of boolean result
965
- */
966
- export declare function setAccessPointStatically(ssid: string, ssidStealth: boolean | undefined, authMode: AuthModeEnum | undefined, password: string | undefined, connectionPriority: number | undefined, ipAddress: string, subnetMask: string, defaultGateway: string): Promise<boolean>;
967
- /**
968
- * Deletes access point information used in client mode.
969
- *
970
- * @function deleteAccessPoint
971
- * @param {string} ssid SSID of the access point to delete.
972
- * @return promise of boolean result
973
- */
974
- export declare function deleteAccessPoint(ssid: string): Promise<boolean>;
3
+ export * from './theta-repository';
4
+ export * from './theta-repository/options';
5
+ export * from './capture';
975
6
  //# sourceMappingURL=index.d.ts.map