@teslemetry/api 0.1.0 → 0.2.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/dist/index.cjs CHANGED
@@ -4984,7 +4984,7 @@ const consoleLogger = {
4984
4984
 
4985
4985
  //#endregion
4986
4986
  //#region package.json
4987
- var version = "0.0.1";
4987
+ var version = "0.2.1";
4988
4988
 
4989
4989
  //#endregion
4990
4990
  //#region src/Teslemetry.ts
package/dist/index.d.cts CHANGED
@@ -8889,7 +8889,29 @@ declare class TeslemetryVehicleApi {
8889
8889
  * Wakes the vehicle from sleep. This command costs 20 command credits
8890
8890
  * @return Promise to an object with response containing wake up confirmation
8891
8891
  */
8892
- wakeUp(): Promise<unknown>;
8892
+ wakeUp(): Promise<{
8893
+ response?: {
8894
+ id?: number;
8895
+ vehicle_id?: number;
8896
+ vin?: string;
8897
+ color?: string | null;
8898
+ access_type?: string;
8899
+ display_name?: string | null;
8900
+ option_codes?: string | null;
8901
+ granular_access?: {
8902
+ hide_private?: boolean;
8903
+ };
8904
+ tokens?: null;
8905
+ state?: string;
8906
+ in_service?: boolean;
8907
+ id_s?: string;
8908
+ calendar_enabled?: boolean;
8909
+ api_version?: number;
8910
+ backseat_token?: string | null;
8911
+ backseat_token_updated_at?: string | null;
8912
+ ble_autopair_enrolled?: boolean;
8913
+ };
8914
+ }>;
8893
8915
  /**
8894
8916
  * Fetches a vehicle's fleet telemetry config.
8895
8917
  * @return Promise to an object with response containing fleet telemetry configuration
@@ -10823,9 +10845,7 @@ declare class TeslemetryVehicleApi {
10823
10845
  */
10824
10846
  ping(): Promise<{
10825
10847
  response: {
10826
- result: boolean | {
10827
- [key: string]: unknown;
10828
- };
10848
+ result: boolean;
10829
10849
  reason?: string;
10830
10850
  };
10831
10851
  }>;
@@ -10836,9 +10856,7 @@ declare class TeslemetryVehicleApi {
10836
10856
  */
10837
10857
  closure(body: PostApi1VehiclesByVinCustomCommandClosureData["body"]): Promise<{
10838
10858
  response: {
10839
- result: boolean | {
10840
- [key: string]: unknown;
10841
- };
10859
+ result: boolean;
10842
10860
  reason?: string;
10843
10861
  };
10844
10862
  }>;
@@ -10849,9 +10867,7 @@ declare class TeslemetryVehicleApi {
10849
10867
  */
10850
10868
  setSeatHeaters(body: PostApi1VehiclesByVinCustomCommandSeatHeaterData["body"]): Promise<{
10851
10869
  response: {
10852
- result: boolean | {
10853
- [key: string]: unknown;
10854
- };
10870
+ result: boolean;
10855
10871
  reason?: string;
10856
10872
  };
10857
10873
  }>;
@@ -10864,9 +10880,7 @@ declare class TeslemetryVehicleApi {
10864
10880
  */
10865
10881
  chargeOnSolar(enabled?: boolean, lowerChargeLimit?: number, upperChargeLimit?: number): Promise<{
10866
10882
  response: {
10867
- result: boolean | {
10868
- [key: string]: unknown;
10869
- };
10883
+ result: boolean;
10870
10884
  reason?: string;
10871
10885
  };
10872
10886
  }>;
@@ -10876,9 +10890,7 @@ declare class TeslemetryVehicleApi {
10876
10890
  */
10877
10891
  dashcamSave(): Promise<{
10878
10892
  response: {
10879
- result: boolean | {
10880
- [key: string]: unknown;
10881
- };
10893
+ result: boolean;
10882
10894
  reason?: string;
10883
10895
  };
10884
10896
  }>;
@@ -10889,9 +10901,7 @@ declare class TeslemetryVehicleApi {
10889
10901
  */
10890
10902
  playVideo(url: string): Promise<{
10891
10903
  response: {
10892
- result: boolean | {
10893
- [key: string]: unknown;
10894
- };
10904
+ result: boolean;
10895
10905
  reason?: string;
10896
10906
  };
10897
10907
  }>;
@@ -10901,9 +10911,7 @@ declare class TeslemetryVehicleApi {
10901
10911
  */
10902
10912
  stopLightShow(): Promise<{
10903
10913
  response: {
10904
- result: boolean | {
10905
- [key: string]: unknown;
10906
- };
10914
+ result: boolean;
10907
10915
  reason?: string;
10908
10916
  };
10909
10917
  }>;
@@ -10917,9 +10925,7 @@ declare class TeslemetryVehicleApi {
10917
10925
  */
10918
10926
  startLightShow(show_index: number, start_time?: number, volume?: number, dance_moves?: boolean): Promise<{
10919
10927
  response: {
10920
- result: boolean | {
10921
- [key: string]: unknown;
10922
- };
10928
+ result: boolean;
10923
10929
  reason?: string;
10924
10930
  };
10925
10931
  }>;
@@ -10930,9 +10936,7 @@ declare class TeslemetryVehicleApi {
10930
10936
  */
10931
10937
  clearPinToDrive(pin: string): Promise<{
10932
10938
  response: {
10933
- result: boolean | {
10934
- [key: string]: unknown;
10935
- };
10939
+ result: boolean;
10936
10940
  reason?: string;
10937
10941
  };
10938
10942
  }>;
@@ -10942,9 +10946,7 @@ declare class TeslemetryVehicleApi {
10942
10946
  */
10943
10947
  removeAllImpermanentKeys(): Promise<{
10944
10948
  response: {
10945
- result: boolean | {
10946
- [key: string]: unknown;
10947
- };
10949
+ result: boolean;
10948
10950
  reason?: string;
10949
10951
  };
10950
10952
  }>;
package/dist/index.d.mts CHANGED
@@ -8889,7 +8889,29 @@ declare class TeslemetryVehicleApi {
8889
8889
  * Wakes the vehicle from sleep. This command costs 20 command credits
8890
8890
  * @return Promise to an object with response containing wake up confirmation
8891
8891
  */
8892
- wakeUp(): Promise<unknown>;
8892
+ wakeUp(): Promise<{
8893
+ response?: {
8894
+ id?: number;
8895
+ vehicle_id?: number;
8896
+ vin?: string;
8897
+ color?: string | null;
8898
+ access_type?: string;
8899
+ display_name?: string | null;
8900
+ option_codes?: string | null;
8901
+ granular_access?: {
8902
+ hide_private?: boolean;
8903
+ };
8904
+ tokens?: null;
8905
+ state?: string;
8906
+ in_service?: boolean;
8907
+ id_s?: string;
8908
+ calendar_enabled?: boolean;
8909
+ api_version?: number;
8910
+ backseat_token?: string | null;
8911
+ backseat_token_updated_at?: string | null;
8912
+ ble_autopair_enrolled?: boolean;
8913
+ };
8914
+ }>;
8893
8915
  /**
8894
8916
  * Fetches a vehicle's fleet telemetry config.
8895
8917
  * @return Promise to an object with response containing fleet telemetry configuration
@@ -10823,9 +10845,7 @@ declare class TeslemetryVehicleApi {
10823
10845
  */
10824
10846
  ping(): Promise<{
10825
10847
  response: {
10826
- result: boolean | {
10827
- [key: string]: unknown;
10828
- };
10848
+ result: boolean;
10829
10849
  reason?: string;
10830
10850
  };
10831
10851
  }>;
@@ -10836,9 +10856,7 @@ declare class TeslemetryVehicleApi {
10836
10856
  */
10837
10857
  closure(body: PostApi1VehiclesByVinCustomCommandClosureData["body"]): Promise<{
10838
10858
  response: {
10839
- result: boolean | {
10840
- [key: string]: unknown;
10841
- };
10859
+ result: boolean;
10842
10860
  reason?: string;
10843
10861
  };
10844
10862
  }>;
@@ -10849,9 +10867,7 @@ declare class TeslemetryVehicleApi {
10849
10867
  */
10850
10868
  setSeatHeaters(body: PostApi1VehiclesByVinCustomCommandSeatHeaterData["body"]): Promise<{
10851
10869
  response: {
10852
- result: boolean | {
10853
- [key: string]: unknown;
10854
- };
10870
+ result: boolean;
10855
10871
  reason?: string;
10856
10872
  };
10857
10873
  }>;
@@ -10864,9 +10880,7 @@ declare class TeslemetryVehicleApi {
10864
10880
  */
10865
10881
  chargeOnSolar(enabled?: boolean, lowerChargeLimit?: number, upperChargeLimit?: number): Promise<{
10866
10882
  response: {
10867
- result: boolean | {
10868
- [key: string]: unknown;
10869
- };
10883
+ result: boolean;
10870
10884
  reason?: string;
10871
10885
  };
10872
10886
  }>;
@@ -10876,9 +10890,7 @@ declare class TeslemetryVehicleApi {
10876
10890
  */
10877
10891
  dashcamSave(): Promise<{
10878
10892
  response: {
10879
- result: boolean | {
10880
- [key: string]: unknown;
10881
- };
10893
+ result: boolean;
10882
10894
  reason?: string;
10883
10895
  };
10884
10896
  }>;
@@ -10889,9 +10901,7 @@ declare class TeslemetryVehicleApi {
10889
10901
  */
10890
10902
  playVideo(url: string): Promise<{
10891
10903
  response: {
10892
- result: boolean | {
10893
- [key: string]: unknown;
10894
- };
10904
+ result: boolean;
10895
10905
  reason?: string;
10896
10906
  };
10897
10907
  }>;
@@ -10901,9 +10911,7 @@ declare class TeslemetryVehicleApi {
10901
10911
  */
10902
10912
  stopLightShow(): Promise<{
10903
10913
  response: {
10904
- result: boolean | {
10905
- [key: string]: unknown;
10906
- };
10914
+ result: boolean;
10907
10915
  reason?: string;
10908
10916
  };
10909
10917
  }>;
@@ -10917,9 +10925,7 @@ declare class TeslemetryVehicleApi {
10917
10925
  */
10918
10926
  startLightShow(show_index: number, start_time?: number, volume?: number, dance_moves?: boolean): Promise<{
10919
10927
  response: {
10920
- result: boolean | {
10921
- [key: string]: unknown;
10922
- };
10928
+ result: boolean;
10923
10929
  reason?: string;
10924
10930
  };
10925
10931
  }>;
@@ -10930,9 +10936,7 @@ declare class TeslemetryVehicleApi {
10930
10936
  */
10931
10937
  clearPinToDrive(pin: string): Promise<{
10932
10938
  response: {
10933
- result: boolean | {
10934
- [key: string]: unknown;
10935
- };
10939
+ result: boolean;
10936
10940
  reason?: string;
10937
10941
  };
10938
10942
  }>;
@@ -10942,9 +10946,7 @@ declare class TeslemetryVehicleApi {
10942
10946
  */
10943
10947
  removeAllImpermanentKeys(): Promise<{
10944
10948
  response: {
10945
- result: boolean | {
10946
- [key: string]: unknown;
10947
- };
10949
+ result: boolean;
10948
10950
  reason?: string;
10949
10951
  };
10950
10952
  }>;
package/dist/index.mjs CHANGED
@@ -4983,7 +4983,7 @@ const consoleLogger = {
4983
4983
 
4984
4984
  //#endregion
4985
4985
  //#region package.json
4986
- var version = "0.0.1";
4986
+ var version = "0.2.1";
4987
4987
 
4988
4988
  //#endregion
4989
4989
  //#region src/Teslemetry.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teslemetry/api",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "API client for Teslemetry",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -29,6 +29,15 @@
29
29
  "url": "https://teslemetry.com"
30
30
  },
31
31
  "license": "Apache-2.0",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/Teslemetry/typescript-teslemetry"
35
+ },
36
+ "bugs": "https://github.com/Teslemetry/typescript-teslemetry/issues/new?template=api_bug.yml",
37
+ "publishConfig": {
38
+ "access": "public",
39
+ "provenance": true
40
+ },
32
41
  "devDependencies": {
33
42
  "@hey-api/openapi-ts": "0.88.0",
34
43
  "dotenv": "^17.2.3",