@tryterra/react-native 2.2.1 → 2.3.1
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/README.md +68 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/BridgeBootstrap.kt +14 -1
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/Conversions.kt +35 -2
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/Rejections.kt +3 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/TerraBridgeOpsImpl.kt +33 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/generated/BridgeErrors.kt +12 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/generated/BridgeOps.kt +47 -0
- package/android/src/bridgeCore/kotlin/co/tryterra/sdk/bridge/generated/BridgeTypes.kt +348 -0
- package/docs/availability.md +111 -1
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Info.plist +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.abi.json +21646 -9224
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.package.swiftinterface +351 -14
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +351 -14
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios.swiftinterface +339 -13
- package/frameworks/TerraSDK.xcframework/ios-arm64/TerraSDK.framework/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/DWARF/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/TerraSDK.yml +7449 -6589
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Info.plist +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +21646 -9224
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +351 -14
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +351 -14
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +339 -13
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +21646 -9224
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +351 -14
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +351 -14
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/Modules/TerraSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +339 -13
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/TerraSDK.framework/_CodeSignature/CodeResources +21 -21
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/DWARF/TerraSDK +0 -0
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/TerraSDK.yml +7450 -6590
- package/frameworks/TerraSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/TerraSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/TerraSDK.yml +7359 -6508
- package/ios/TerraBridgeCore/BridgeBootstrap.swift +13 -3
- package/ios/TerraBridgeCore/Conversions.swift +36 -1
- package/ios/TerraBridgeCore/Generated/BridgeErrors.swift +15 -0
- package/ios/TerraBridgeCore/Generated/BridgeOps.swift +82 -0
- package/ios/TerraBridgeCore/Generated/BridgeTypes.swift +252 -3
- package/ios/TerraBridgeCore/Rejections.swift +5 -1
- package/ios/TerraBridgeCore/TerraBridgeOpsImpl.swift +32 -1
- package/lib/Terra.d.ts +47 -1
- package/lib/Terra.js +16 -0
- package/lib/generated/client.d.ts +33 -1
- package/lib/generated/client.js +42 -0
- package/lib/generated/codecs.d.ts +15 -1
- package/lib/generated/codecs.js +119 -5
- package/lib/generated/errors.d.ts +1 -1
- package/lib/generated/errors.js +6 -1
- package/lib/generated/ops.d.ts +1 -1
- package/lib/generated/ops.js +12 -0
- package/lib/generated/types.d.ts +70 -2
- package/lib/generated/types.js +101 -1
- package/lib/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/Terra.ts +64 -0
- package/src/generated/client.ts +49 -2
- package/src/generated/codecs.ts +112 -6
- package/src/generated/errors.ts +11 -1
- package/src/generated/ops.ts +17 -0
- package/src/generated/types.ts +274 -1
- package/src/index.ts +1 -0
package/src/generated/types.ts
CHANGED
|
@@ -19,7 +19,8 @@ export type DataCategory =
|
|
|
19
19
|
| "sleep"
|
|
20
20
|
| "nutrition"
|
|
21
21
|
| "menstruation"
|
|
22
|
-
| "athlete"
|
|
22
|
+
| "athlete" // ios only
|
|
23
|
+
| "clinicalRecord"; // ios only
|
|
23
24
|
|
|
24
25
|
export const DataCategoryValues: readonly DataCategory[] = [
|
|
25
26
|
"activity",
|
|
@@ -29,6 +30,209 @@ export const DataCategoryValues: readonly DataCategory[] = [
|
|
|
29
30
|
"nutrition",
|
|
30
31
|
"menstruation",
|
|
31
32
|
"athlete",
|
|
33
|
+
"clinicalRecord",
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* One kind of health data, at the granularity a permission sheet can ask for it: the
|
|
38
|
+
* type-level twin of DataCategory. permissions.request with readTypes asks for exactly these,
|
|
39
|
+
* and from then on the SDK reads and uploads nothing else. Each dietary type is HealthKit's
|
|
40
|
+
* HKQuantityTypeIdentifierDietary identifier less its prefix; on Health Connect they all read
|
|
41
|
+
* NutritionRecord, and the store keeps only the requested nutrients of each meal.
|
|
42
|
+
* healthObservation and clinicalRecord have no types. docs/sdk-reference.md lists the
|
|
43
|
+
* HealthKit and Health Connect types behind each and the route it feeds.
|
|
44
|
+
*/
|
|
45
|
+
export type HealthDataType =
|
|
46
|
+
| "steps"
|
|
47
|
+
| "activeEnergy"
|
|
48
|
+
| "basalEnergy"
|
|
49
|
+
| "distance"
|
|
50
|
+
| "floorsClimbed"
|
|
51
|
+
| "swimmingStrokes" // ios only
|
|
52
|
+
| "exerciseTime" // ios only
|
|
53
|
+
| "moveTime" // ios only
|
|
54
|
+
| "standTime" // ios only
|
|
55
|
+
| "heartRate"
|
|
56
|
+
| "restingHeartRate"
|
|
57
|
+
| "sleepAnalysis"
|
|
58
|
+
| "workouts"
|
|
59
|
+
| "workoutRoute"
|
|
60
|
+
| "speed"
|
|
61
|
+
| "power"
|
|
62
|
+
| "cyclingCadence"
|
|
63
|
+
| "weight"
|
|
64
|
+
| "height"
|
|
65
|
+
| "bmi" // ios only
|
|
66
|
+
| "bodyFat"
|
|
67
|
+
| "leanBodyMass"
|
|
68
|
+
| "waistCircumference" // ios only
|
|
69
|
+
| "bloodPressure"
|
|
70
|
+
| "bloodGlucose"
|
|
71
|
+
| "oxygenSaturation"
|
|
72
|
+
| "bodyTemperature"
|
|
73
|
+
| "heartRateVariability"
|
|
74
|
+
| "respiratoryRate"
|
|
75
|
+
| "vo2Max"
|
|
76
|
+
| "insulinDelivery" // ios only
|
|
77
|
+
| "heartbeatSeries" // ios only
|
|
78
|
+
| "electrocardiogram" // ios only
|
|
79
|
+
| "dietaryEnergyConsumed"
|
|
80
|
+
| "dietaryProtein"
|
|
81
|
+
| "dietaryCarbohydrates"
|
|
82
|
+
| "dietaryFatTotal"
|
|
83
|
+
| "dietaryFatSaturated"
|
|
84
|
+
| "dietaryFatMonounsaturated"
|
|
85
|
+
| "dietaryFatPolyunsaturated"
|
|
86
|
+
| "dietarySugar"
|
|
87
|
+
| "dietaryFiber"
|
|
88
|
+
| "dietaryCholesterol"
|
|
89
|
+
| "dietarySodium"
|
|
90
|
+
| "dietaryPotassium"
|
|
91
|
+
| "dietaryCalcium"
|
|
92
|
+
| "dietaryIron"
|
|
93
|
+
| "dietaryMagnesium"
|
|
94
|
+
| "dietaryZinc"
|
|
95
|
+
| "dietaryPhosphorus"
|
|
96
|
+
| "dietaryIodine"
|
|
97
|
+
| "dietaryManganese"
|
|
98
|
+
| "dietaryMolybdenum"
|
|
99
|
+
| "dietarySelenium"
|
|
100
|
+
| "dietaryCopper"
|
|
101
|
+
| "dietaryChromium"
|
|
102
|
+
| "dietaryChloride"
|
|
103
|
+
| "dietaryCaffeine"
|
|
104
|
+
| "dietaryVitaminA"
|
|
105
|
+
| "dietaryVitaminC"
|
|
106
|
+
| "dietaryVitaminD"
|
|
107
|
+
| "dietaryVitaminE"
|
|
108
|
+
| "dietaryVitaminK"
|
|
109
|
+
| "dietaryVitaminB6"
|
|
110
|
+
| "dietaryVitaminB12"
|
|
111
|
+
| "dietaryThiamin"
|
|
112
|
+
| "dietaryRiboflavin"
|
|
113
|
+
| "dietaryNiacin"
|
|
114
|
+
| "dietaryFolate"
|
|
115
|
+
| "dietaryBiotin"
|
|
116
|
+
| "dietaryPantothenicAcid"
|
|
117
|
+
| "dietaryWater"
|
|
118
|
+
| "menstrualFlow"
|
|
119
|
+
| "intermenstrualBleeding"
|
|
120
|
+
| "ovulationTest"
|
|
121
|
+
| "cervicalMucus"
|
|
122
|
+
| "sexualActivity"
|
|
123
|
+
| "pregnancyTest" // ios only
|
|
124
|
+
| "progesteroneTest" // ios only
|
|
125
|
+
| "pregnancy" // ios only
|
|
126
|
+
| "lactation" // ios only
|
|
127
|
+
| "contraceptive" // ios only
|
|
128
|
+
| "persistentIntermenstrualBleeding" // ios only
|
|
129
|
+
| "infrequentCycles" // ios only
|
|
130
|
+
| "irregularCycles" // ios only
|
|
131
|
+
| "prolongedPeriods" // ios only
|
|
132
|
+
| "bleedingDuringPregnancy" // ios only
|
|
133
|
+
| "bleedingAfterPregnancy" // ios only
|
|
134
|
+
| "biologicalSex" // ios only
|
|
135
|
+
| "dateOfBirth" // ios only
|
|
136
|
+
| "wheelchairUse" // ios only
|
|
137
|
+
| "activityMoveMode" // ios only
|
|
138
|
+
| "boneMass" // android only
|
|
139
|
+
| "bodyWaterMass"; // android only
|
|
140
|
+
|
|
141
|
+
export const HealthDataTypeValues: readonly HealthDataType[] = [
|
|
142
|
+
"steps",
|
|
143
|
+
"activeEnergy",
|
|
144
|
+
"basalEnergy",
|
|
145
|
+
"distance",
|
|
146
|
+
"floorsClimbed",
|
|
147
|
+
"swimmingStrokes",
|
|
148
|
+
"exerciseTime",
|
|
149
|
+
"moveTime",
|
|
150
|
+
"standTime",
|
|
151
|
+
"heartRate",
|
|
152
|
+
"restingHeartRate",
|
|
153
|
+
"sleepAnalysis",
|
|
154
|
+
"workouts",
|
|
155
|
+
"workoutRoute",
|
|
156
|
+
"speed",
|
|
157
|
+
"power",
|
|
158
|
+
"cyclingCadence",
|
|
159
|
+
"weight",
|
|
160
|
+
"height",
|
|
161
|
+
"bmi",
|
|
162
|
+
"bodyFat",
|
|
163
|
+
"leanBodyMass",
|
|
164
|
+
"waistCircumference",
|
|
165
|
+
"bloodPressure",
|
|
166
|
+
"bloodGlucose",
|
|
167
|
+
"oxygenSaturation",
|
|
168
|
+
"bodyTemperature",
|
|
169
|
+
"heartRateVariability",
|
|
170
|
+
"respiratoryRate",
|
|
171
|
+
"vo2Max",
|
|
172
|
+
"insulinDelivery",
|
|
173
|
+
"heartbeatSeries",
|
|
174
|
+
"electrocardiogram",
|
|
175
|
+
"dietaryEnergyConsumed",
|
|
176
|
+
"dietaryProtein",
|
|
177
|
+
"dietaryCarbohydrates",
|
|
178
|
+
"dietaryFatTotal",
|
|
179
|
+
"dietaryFatSaturated",
|
|
180
|
+
"dietaryFatMonounsaturated",
|
|
181
|
+
"dietaryFatPolyunsaturated",
|
|
182
|
+
"dietarySugar",
|
|
183
|
+
"dietaryFiber",
|
|
184
|
+
"dietaryCholesterol",
|
|
185
|
+
"dietarySodium",
|
|
186
|
+
"dietaryPotassium",
|
|
187
|
+
"dietaryCalcium",
|
|
188
|
+
"dietaryIron",
|
|
189
|
+
"dietaryMagnesium",
|
|
190
|
+
"dietaryZinc",
|
|
191
|
+
"dietaryPhosphorus",
|
|
192
|
+
"dietaryIodine",
|
|
193
|
+
"dietaryManganese",
|
|
194
|
+
"dietaryMolybdenum",
|
|
195
|
+
"dietarySelenium",
|
|
196
|
+
"dietaryCopper",
|
|
197
|
+
"dietaryChromium",
|
|
198
|
+
"dietaryChloride",
|
|
199
|
+
"dietaryCaffeine",
|
|
200
|
+
"dietaryVitaminA",
|
|
201
|
+
"dietaryVitaminC",
|
|
202
|
+
"dietaryVitaminD",
|
|
203
|
+
"dietaryVitaminE",
|
|
204
|
+
"dietaryVitaminK",
|
|
205
|
+
"dietaryVitaminB6",
|
|
206
|
+
"dietaryVitaminB12",
|
|
207
|
+
"dietaryThiamin",
|
|
208
|
+
"dietaryRiboflavin",
|
|
209
|
+
"dietaryNiacin",
|
|
210
|
+
"dietaryFolate",
|
|
211
|
+
"dietaryBiotin",
|
|
212
|
+
"dietaryPantothenicAcid",
|
|
213
|
+
"dietaryWater",
|
|
214
|
+
"menstrualFlow",
|
|
215
|
+
"intermenstrualBleeding",
|
|
216
|
+
"ovulationTest",
|
|
217
|
+
"cervicalMucus",
|
|
218
|
+
"sexualActivity",
|
|
219
|
+
"pregnancyTest",
|
|
220
|
+
"progesteroneTest",
|
|
221
|
+
"pregnancy",
|
|
222
|
+
"lactation",
|
|
223
|
+
"contraceptive",
|
|
224
|
+
"persistentIntermenstrualBleeding",
|
|
225
|
+
"infrequentCycles",
|
|
226
|
+
"irregularCycles",
|
|
227
|
+
"prolongedPeriods",
|
|
228
|
+
"bleedingDuringPregnancy",
|
|
229
|
+
"bleedingAfterPregnancy",
|
|
230
|
+
"biologicalSex",
|
|
231
|
+
"dateOfBirth",
|
|
232
|
+
"wheelchairUse",
|
|
233
|
+
"activityMoveMode",
|
|
234
|
+
"boneMass",
|
|
235
|
+
"bodyWaterMass",
|
|
32
236
|
];
|
|
33
237
|
|
|
34
238
|
export type PermissionStatus =
|
|
@@ -294,9 +498,12 @@ export type FailureCode =
|
|
|
294
498
|
| "sampleNotFound"
|
|
295
499
|
| "rollbackIncomplete"
|
|
296
500
|
| "distanceNotAttributable"
|
|
501
|
+
| "workoutsRequired"
|
|
297
502
|
| "bloodPressureIncomplete"
|
|
298
503
|
| "authorizationUnavailableInExtension"
|
|
299
504
|
| "routeAwaitingConverter"
|
|
505
|
+
| "dataTypeNotEnabled" // ios only
|
|
506
|
+
| "linkRefused"
|
|
300
507
|
| "readQuotaExceeded" // android only
|
|
301
508
|
| "plannedWorkoutUnnamed"; // ios only
|
|
302
509
|
|
|
@@ -330,9 +537,12 @@ export const FailureCodeValues: readonly FailureCode[] = [
|
|
|
330
537
|
"sampleNotFound",
|
|
331
538
|
"rollbackIncomplete",
|
|
332
539
|
"distanceNotAttributable",
|
|
540
|
+
"workoutsRequired",
|
|
333
541
|
"bloodPressureIncomplete",
|
|
334
542
|
"authorizationUnavailableInExtension",
|
|
335
543
|
"routeAwaitingConverter",
|
|
544
|
+
"dataTypeNotEnabled",
|
|
545
|
+
"linkRefused",
|
|
336
546
|
"readQuotaExceeded",
|
|
337
547
|
"plannedWorkoutUnnamed",
|
|
338
548
|
];
|
|
@@ -740,6 +950,12 @@ export interface HealthAccess {
|
|
|
740
950
|
readonly read: readonly DataCategory[];
|
|
741
951
|
readonly write: readonly DataCategory[];
|
|
742
952
|
readonly workouts: readonly WorkoutScope[];
|
|
953
|
+
/**
|
|
954
|
+
* The types asked for individually, sorted by wire name; absent for an install that asked only
|
|
955
|
+
* by category. Optional rather than a set so every earlier payload still decodes. Once present
|
|
956
|
+
* the install reads and uploads only these types and the types of the categories in read.
|
|
957
|
+
*/
|
|
958
|
+
readonly readTypes?: readonly HealthDataType[] | undefined;
|
|
743
959
|
}
|
|
744
960
|
|
|
745
961
|
export interface HeartRateEntry {
|
|
@@ -896,6 +1112,12 @@ export interface BootstrapState {
|
|
|
896
1112
|
readonly platform: string;
|
|
897
1113
|
readonly sdkVersion: string;
|
|
898
1114
|
readonly backgroundRegistered: boolean;
|
|
1115
|
+
/**
|
|
1116
|
+
* single or multiple, as the native bootstrap configured the client (Info.plist TerraDevIDMode
|
|
1117
|
+
* on iOS, manifest meta-data co.tryterra.sdk.DEV_ID_MODE on Android). Lets the app detect a
|
|
1118
|
+
* missing key before linkDevId refuses with dev_id_mismatch.
|
|
1119
|
+
*/
|
|
1120
|
+
readonly devIdMode?: string | undefined;
|
|
899
1121
|
}
|
|
900
1122
|
|
|
901
1123
|
/**
|
|
@@ -922,6 +1144,11 @@ export interface CategoryRequest {
|
|
|
922
1144
|
readonly source?: Source | undefined;
|
|
923
1145
|
}
|
|
924
1146
|
|
|
1147
|
+
export interface DataTypeRequest {
|
|
1148
|
+
readonly type: HealthDataType;
|
|
1149
|
+
readonly source?: Source | undefined;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
925
1152
|
export interface RecordIdRequest {
|
|
926
1153
|
readonly id: string;
|
|
927
1154
|
}
|
|
@@ -941,6 +1168,12 @@ export interface PermissionRequest {
|
|
|
941
1168
|
readonly write: readonly DataCategory[];
|
|
942
1169
|
readonly workouts: readonly WorkoutScope[];
|
|
943
1170
|
readonly source?: Source | undefined;
|
|
1171
|
+
/**
|
|
1172
|
+
* Individual types to read, for a host that discloses specific data rather than whole
|
|
1173
|
+
* categories. Optional, so a payload from a wrapper that predates types still decodes. A type
|
|
1174
|
+
* this platform has no store type for rejects with bridge.unsupported_on_platform.
|
|
1175
|
+
*/
|
|
1176
|
+
readonly readTypes?: readonly HealthDataType[] | undefined;
|
|
944
1177
|
}
|
|
945
1178
|
|
|
946
1179
|
/**
|
|
@@ -973,6 +1206,46 @@ export interface MarkCompleteRequest {
|
|
|
973
1206
|
readonly at?: Date | undefined;
|
|
974
1207
|
}
|
|
975
1208
|
|
|
1209
|
+
/** One customer linking a multi-dev-id installation, with a link token that customer minted. */
|
|
1210
|
+
export interface LinkDevIdRequest {
|
|
1211
|
+
readonly devId: string;
|
|
1212
|
+
readonly token: string;
|
|
1213
|
+
readonly source?: Source | undefined;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
export interface DevIdRequest {
|
|
1217
|
+
readonly devId: string;
|
|
1218
|
+
readonly source?: Source | undefined;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/** One customer's connection to a multi-dev-id installation's shared device link. */
|
|
1222
|
+
export interface DevIdBinding {
|
|
1223
|
+
readonly devId: string;
|
|
1224
|
+
/** Terra's id for this customer's connection. */
|
|
1225
|
+
readonly userId: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* The upload routes the customer selected, as Terra answered at link. Absent when Terra did
|
|
1228
|
+
* not say, which syncs the app's requested access for this customer.
|
|
1229
|
+
*/
|
|
1230
|
+
readonly dataTypes?: readonly string[] | undefined;
|
|
1231
|
+
readonly linkedAt: Date;
|
|
1232
|
+
/**
|
|
1233
|
+
* False once Terra's init no longer lists this connection: the customer removed it or stopped
|
|
1234
|
+
* accepting the key. Nothing is read or backfilled for it until the customer links again.
|
|
1235
|
+
*/
|
|
1236
|
+
readonly active: boolean;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
export interface LinkedDevIdsRequest {
|
|
1240
|
+
readonly source?: Source | undefined;
|
|
1241
|
+
/** Ask Terra's init first, so active is as of now. */
|
|
1242
|
+
readonly refresh?: boolean | undefined;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
export interface DevIdBindingList {
|
|
1246
|
+
readonly bindings: readonly DevIdBinding[];
|
|
1247
|
+
}
|
|
1248
|
+
|
|
976
1249
|
export interface BoolResult {
|
|
977
1250
|
readonly value: boolean;
|
|
978
1251
|
}
|