@ekhein/lamda-node-sdk 1.0.2 → 2.0.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 (154) hide show
  1. package/dist/src/constants/activity.flag.d.ts +22 -0
  2. package/dist/src/constants/activity.flag.js +22 -0
  3. package/dist/src/constants/android.intent.d.ts +56 -0
  4. package/dist/src/constants/android.intent.js +56 -0
  5. package/dist/src/constants/android.permission.d.ts +30 -0
  6. package/dist/src/constants/android.permission.js +30 -0
  7. package/dist/src/constants/index.d.ts +3 -0
  8. package/dist/src/constants/index.js +3 -0
  9. package/dist/src/decorators/inject.decorator.d.ts +2 -0
  10. package/dist/src/decorators/inject.decorator.js +15 -0
  11. package/dist/src/exceptions/remoteCall.exception.d.ts +7 -0
  12. package/dist/src/exceptions/remoteCall.exception.js +12 -0
  13. package/dist/src/exceptions/timeout.exception.d.ts +4 -0
  14. package/dist/src/exceptions/timeout.exception.js +6 -0
  15. package/dist/src/interceptor/remoteException.Interceptor.d.ts +2 -0
  16. package/dist/src/interceptor/remoteException.Interceptor.js +13 -0
  17. package/dist/{main.d.ts → src/main.d.ts} +9 -21
  18. package/dist/src/main.js +135 -0
  19. package/dist/src/rpc/application.d.ts +136 -0
  20. package/dist/src/rpc/application.js +1537 -0
  21. package/dist/src/rpc/debug.d.ts +19 -0
  22. package/dist/src/rpc/debug.js +56 -0
  23. package/dist/{rpc → src/rpc}/file.d.ts +11 -13
  24. package/dist/src/rpc/file.js +373 -0
  25. package/dist/src/rpc/google/protobuf/any.d.ts +20 -0
  26. package/dist/src/rpc/google/protobuf/any.js +98 -0
  27. package/dist/src/rpc/google/protobuf/empty.d.ts +18 -0
  28. package/dist/src/rpc/google/protobuf/empty.js +39 -0
  29. package/dist/{rpc → src/rpc}/google/protobuf/struct.d.ts +19 -21
  30. package/dist/src/rpc/google/protobuf/struct.js +438 -0
  31. package/dist/src/rpc/policy.d.ts +22 -0
  32. package/dist/src/rpc/policy.js +103 -0
  33. package/dist/src/rpc/proxy.d.ts +106 -0
  34. package/dist/src/rpc/proxy.js +774 -0
  35. package/dist/{rpc → src/rpc}/services.d.ts +421 -424
  36. package/dist/src/rpc/services.js +1493 -0
  37. package/dist/src/rpc/settings.d.ts +29 -0
  38. package/dist/src/rpc/settings.js +125 -0
  39. package/dist/src/rpc/shell.d.ts +34 -0
  40. package/dist/src/rpc/shell.js +294 -0
  41. package/dist/{rpc → src/rpc}/status.d.ts +17 -19
  42. package/dist/src/rpc/status.js +896 -0
  43. package/dist/src/rpc/storage.d.ts +22 -0
  44. package/dist/src/rpc/storage.js +128 -0
  45. package/dist/src/rpc/types.d.ts +34 -0
  46. package/dist/src/rpc/types.js +281 -0
  47. package/dist/{rpc → src/rpc}/uiautomator.d.ts +87 -89
  48. package/dist/src/rpc/uiautomator.js +5350 -0
  49. package/dist/src/rpc/util.d.ts +101 -0
  50. package/dist/src/rpc/util.js +1158 -0
  51. package/dist/{rpc → src/rpc}/wifi.d.ts +23 -25
  52. package/dist/src/rpc/wifi.js +971 -0
  53. package/package.json +4 -9
  54. package/dist/chunk-3HDKHFYE.js +0 -1602
  55. package/dist/chunk-3JBDAA2H.js +0 -439
  56. package/dist/chunk-4AHM55IO.js +0 -1172
  57. package/dist/chunk-6HD35RPW.js +0 -5370
  58. package/dist/chunk-7XF22HAW.js +0 -907
  59. package/dist/chunk-7YGA6EOV.js +0 -109
  60. package/dist/chunk-ADS4GRIL.js +0 -14
  61. package/dist/chunk-FSLE4VGI.js +0 -48
  62. package/dist/chunk-H7Z6XFBF.js +0 -134
  63. package/dist/chunk-KJKSI2WL.js +0 -62
  64. package/dist/chunk-O52JGDU7.js +0 -800
  65. package/dist/chunk-ORXTTWPB.js +0 -379
  66. package/dist/chunk-OZJH6SR7.js +0 -20
  67. package/dist/chunk-P53F45YO.js +0 -64
  68. package/dist/chunk-QXMPY6EE.js +0 -289
  69. package/dist/chunk-SBFKX3ZY.js +0 -1554
  70. package/dist/chunk-WFQEBPE6.js +0 -300
  71. package/dist/chunk-X4LTH2UN.js +0 -983
  72. package/dist/chunk-XAX5BZL3.js +0 -132
  73. package/dist/chunk-ZXF5DGTC.js +0 -45
  74. package/dist/constants/activity.flag.cjs +0 -92
  75. package/dist/constants/activity.flag.d.cts +0 -24
  76. package/dist/constants/activity.flag.d.ts +0 -24
  77. package/dist/constants/activity.flag.js +0 -49
  78. package/dist/constants/android.permission.cjs +0 -116
  79. package/dist/constants/android.permission.d.cts +0 -32
  80. package/dist/constants/android.permission.d.ts +0 -32
  81. package/dist/constants/android.permission.js +0 -65
  82. package/dist/constants/index.cjs +0 -186
  83. package/dist/constants/index.d.cts +0 -2
  84. package/dist/constants/index.d.ts +0 -2
  85. package/dist/constants/index.js +0 -111
  86. package/dist/decorators/inject.decorator.cjs +0 -43
  87. package/dist/decorators/inject.decorator.d.cts +0 -5
  88. package/dist/decorators/inject.decorator.d.ts +0 -5
  89. package/dist/decorators/inject.decorator.js +0 -7
  90. package/dist/main.cjs +0 -11969
  91. package/dist/main.d.cts +0 -37
  92. package/dist/main.js +0 -112
  93. package/dist/rpc/application.cjs +0 -2019
  94. package/dist/rpc/application.d.cts +0 -138
  95. package/dist/rpc/application.d.ts +0 -138
  96. package/dist/rpc/application.js +0 -50
  97. package/dist/rpc/debug.cjs +0 -86
  98. package/dist/rpc/debug.d.cts +0 -21
  99. package/dist/rpc/debug.d.ts +0 -21
  100. package/dist/rpc/debug.js +0 -9
  101. package/dist/rpc/file.cjs +0 -405
  102. package/dist/rpc/file.d.cts +0 -40
  103. package/dist/rpc/file.js +0 -13
  104. package/dist/rpc/google/protobuf/any.cjs +0 -126
  105. package/dist/rpc/google/protobuf/any.d.cts +0 -22
  106. package/dist/rpc/google/protobuf/any.d.ts +0 -22
  107. package/dist/rpc/google/protobuf/any.js +0 -103
  108. package/dist/rpc/google/protobuf/empty.cjs +0 -69
  109. package/dist/rpc/google/protobuf/empty.d.cts +0 -20
  110. package/dist/rpc/google/protobuf/empty.d.ts +0 -20
  111. package/dist/rpc/google/protobuf/empty.js +0 -9
  112. package/dist/rpc/google/protobuf/struct.cjs +0 -469
  113. package/dist/rpc/google/protobuf/struct.d.cts +0 -65
  114. package/dist/rpc/google/protobuf/struct.js +0 -21
  115. package/dist/rpc/policy.cjs +0 -133
  116. package/dist/rpc/policy.d.cts +0 -24
  117. package/dist/rpc/policy.d.ts +0 -24
  118. package/dist/rpc/policy.js +0 -9
  119. package/dist/rpc/proxy.cjs +0 -1109
  120. package/dist/rpc/proxy.d.cts +0 -108
  121. package/dist/rpc/proxy.d.ts +0 -108
  122. package/dist/rpc/proxy.js +0 -49
  123. package/dist/rpc/services.cjs +0 -11898
  124. package/dist/rpc/services.d.cts +0 -1920
  125. package/dist/rpc/services.js +0 -48
  126. package/dist/rpc/settings.cjs +0 -161
  127. package/dist/rpc/settings.d.cts +0 -31
  128. package/dist/rpc/settings.d.ts +0 -31
  129. package/dist/rpc/settings.js +0 -15
  130. package/dist/rpc/shell.cjs +0 -326
  131. package/dist/rpc/shell.d.cts +0 -36
  132. package/dist/rpc/shell.d.ts +0 -36
  133. package/dist/rpc/shell.js +0 -13
  134. package/dist/rpc/status.cjs +0 -936
  135. package/dist/rpc/status.d.cts +0 -76
  136. package/dist/rpc/status.js +0 -19
  137. package/dist/rpc/storage.cjs +0 -156
  138. package/dist/rpc/storage.d.cts +0 -24
  139. package/dist/rpc/storage.d.ts +0 -24
  140. package/dist/rpc/storage.js +0 -9
  141. package/dist/rpc/types.cjs +0 -317
  142. package/dist/rpc/types.d.cts +0 -36
  143. package/dist/rpc/types.d.ts +0 -36
  144. package/dist/rpc/types.js +0 -17
  145. package/dist/rpc/uiautomator.cjs +0 -5446
  146. package/dist/rpc/uiautomator.d.cts +0 -618
  147. package/dist/rpc/uiautomator.js +0 -113
  148. package/dist/rpc/util.cjs +0 -1212
  149. package/dist/rpc/util.d.cts +0 -103
  150. package/dist/rpc/util.d.ts +0 -103
  151. package/dist/rpc/util.js +0 -41
  152. package/dist/rpc/wifi.cjs +0 -1015
  153. package/dist/rpc/wifi.d.cts +0 -84
  154. package/dist/rpc/wifi.js +0 -25
@@ -1,65 +0,0 @@
1
- import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
2
-
3
- declare const protobufPackage = "google.protobuf";
4
- declare enum NullValue {
5
- NULL_VALUE = 0,
6
- UNRECOGNIZED = -1
7
- }
8
- declare function nullValueFromJSON(object: any): NullValue;
9
- declare function nullValueToJSON(object: NullValue): string;
10
- interface Struct {
11
- fields: {
12
- [key: string]: any | undefined;
13
- };
14
- }
15
- declare const Struct: MessageFns<Struct> & StructWrapperFns;
16
- interface Struct_FieldsEntry {
17
- key: string;
18
- value: any | undefined;
19
- }
20
- declare const Struct_FieldsEntry: MessageFns<Struct_FieldsEntry>;
21
- interface Value {
22
- nullValue?: NullValue | undefined;
23
- numberValue?: number | undefined;
24
- stringValue?: string | undefined;
25
- boolValue?: boolean | undefined;
26
- structValue?: {
27
- [key: string]: any;
28
- } | undefined;
29
- listValue?: Array<any> | undefined;
30
- }
31
- declare const Value: MessageFns<Value> & AnyValueWrapperFns;
32
- interface ListValue {
33
- values: any[];
34
- }
35
- declare const ListValue: MessageFns<ListValue> & ListValueWrapperFns;
36
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
37
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
38
- [K in keyof T]?: DeepPartial<T[K]>;
39
- } : Partial<T>;
40
- interface MessageFns<T> {
41
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
42
- decode(input: BinaryReader | Uint8Array, length?: number): T;
43
- fromJSON(object: any): T;
44
- toJSON(message: T): unknown;
45
- create(base?: DeepPartial<T>): T;
46
- fromPartial(object: DeepPartial<T>): T;
47
- }
48
- interface StructWrapperFns {
49
- wrap(object: {
50
- [key: string]: any;
51
- } | undefined): Struct;
52
- unwrap(message: Struct): {
53
- [key: string]: any;
54
- };
55
- }
56
- interface AnyValueWrapperFns {
57
- wrap(value: any): Value;
58
- unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
59
- }
60
- interface ListValueWrapperFns {
61
- wrap(array: Array<any> | undefined): ListValue;
62
- unwrap(message: ListValue): Array<any>;
63
- }
64
-
65
- export { type AnyValueWrapperFns, type DeepPartial, ListValue, type ListValueWrapperFns, type MessageFns, NullValue, Struct, type StructWrapperFns, Struct_FieldsEntry, Value, nullValueFromJSON, nullValueToJSON, protobufPackage };
@@ -1,21 +0,0 @@
1
- import {
2
- ListValue,
3
- NullValue,
4
- Struct,
5
- Struct_FieldsEntry,
6
- Value,
7
- nullValueFromJSON,
8
- nullValueToJSON,
9
- protobufPackage
10
- } from "../../../chunk-3JBDAA2H.js";
11
- import "../../../chunk-ADS4GRIL.js";
12
- export {
13
- ListValue,
14
- NullValue,
15
- Struct,
16
- Struct_FieldsEntry,
17
- Value,
18
- nullValueFromJSON,
19
- nullValueToJSON,
20
- protobufPackage
21
- };
@@ -1,133 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/rpc/policy.ts
20
- var policy_exports = {};
21
- __export(policy_exports, {
22
- SelinuxPolicyRequest: () => SelinuxPolicyRequest,
23
- protobufPackage: () => protobufPackage
24
- });
25
- module.exports = __toCommonJS(policy_exports);
26
- var import_wire = require("@bufbuild/protobuf/wire");
27
- var protobufPackage = "lamda.rpc";
28
- function createBaseSelinuxPolicyRequest() {
29
- return { source: "", target: "", tclass: "", action: "" };
30
- }
31
- var SelinuxPolicyRequest = {
32
- encode(message, writer = new import_wire.BinaryWriter()) {
33
- if (message.source !== "") {
34
- writer.uint32(10).string(message.source);
35
- }
36
- if (message.target !== "") {
37
- writer.uint32(18).string(message.target);
38
- }
39
- if (message.tclass !== "") {
40
- writer.uint32(26).string(message.tclass);
41
- }
42
- if (message.action !== "") {
43
- writer.uint32(34).string(message.action);
44
- }
45
- return writer;
46
- },
47
- decode(input, length) {
48
- const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
49
- let end = length === void 0 ? reader.len : reader.pos + length;
50
- const message = createBaseSelinuxPolicyRequest();
51
- while (reader.pos < end) {
52
- const tag = reader.uint32();
53
- switch (tag >>> 3) {
54
- case 1: {
55
- if (tag !== 10) {
56
- break;
57
- }
58
- message.source = reader.string();
59
- continue;
60
- }
61
- case 2: {
62
- if (tag !== 18) {
63
- break;
64
- }
65
- message.target = reader.string();
66
- continue;
67
- }
68
- case 3: {
69
- if (tag !== 26) {
70
- break;
71
- }
72
- message.tclass = reader.string();
73
- continue;
74
- }
75
- case 4: {
76
- if (tag !== 34) {
77
- break;
78
- }
79
- message.action = reader.string();
80
- continue;
81
- }
82
- }
83
- if ((tag & 7) === 4 || tag === 0) {
84
- break;
85
- }
86
- reader.skip(tag & 7);
87
- }
88
- return message;
89
- },
90
- fromJSON(object) {
91
- return {
92
- source: isSet(object.source) ? globalThis.String(object.source) : "",
93
- target: isSet(object.target) ? globalThis.String(object.target) : "",
94
- tclass: isSet(object.tclass) ? globalThis.String(object.tclass) : "",
95
- action: isSet(object.action) ? globalThis.String(object.action) : ""
96
- };
97
- },
98
- toJSON(message) {
99
- const obj = {};
100
- if (message.source !== "") {
101
- obj.source = message.source;
102
- }
103
- if (message.target !== "") {
104
- obj.target = message.target;
105
- }
106
- if (message.tclass !== "") {
107
- obj.tclass = message.tclass;
108
- }
109
- if (message.action !== "") {
110
- obj.action = message.action;
111
- }
112
- return obj;
113
- },
114
- create(base) {
115
- return SelinuxPolicyRequest.fromPartial(base ?? {});
116
- },
117
- fromPartial(object) {
118
- const message = createBaseSelinuxPolicyRequest();
119
- message.source = object.source ?? "";
120
- message.target = object.target ?? "";
121
- message.tclass = object.tclass ?? "";
122
- message.action = object.action ?? "";
123
- return message;
124
- }
125
- };
126
- function isSet(value) {
127
- return value !== null && value !== void 0;
128
- }
129
- // Annotate the CommonJS export names for ESM import in node:
130
- 0 && (module.exports = {
131
- SelinuxPolicyRequest,
132
- protobufPackage
133
- });
@@ -1,24 +0,0 @@
1
- import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
2
-
3
- declare const protobufPackage = "lamda.rpc";
4
- interface SelinuxPolicyRequest {
5
- source: string;
6
- target: string;
7
- tclass: string;
8
- action: string;
9
- }
10
- declare const SelinuxPolicyRequest: MessageFns<SelinuxPolicyRequest>;
11
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
12
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
13
- [K in keyof T]?: DeepPartial<T[K]>;
14
- } : Partial<T>;
15
- interface MessageFns<T> {
16
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
17
- decode(input: BinaryReader | Uint8Array, length?: number): T;
18
- fromJSON(object: any): T;
19
- toJSON(message: T): unknown;
20
- create(base?: DeepPartial<T>): T;
21
- fromPartial(object: DeepPartial<T>): T;
22
- }
23
-
24
- export { type DeepPartial, type MessageFns, SelinuxPolicyRequest, protobufPackage };
@@ -1,24 +0,0 @@
1
- import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
2
-
3
- declare const protobufPackage = "lamda.rpc";
4
- interface SelinuxPolicyRequest {
5
- source: string;
6
- target: string;
7
- tclass: string;
8
- action: string;
9
- }
10
- declare const SelinuxPolicyRequest: MessageFns<SelinuxPolicyRequest>;
11
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
12
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
13
- [K in keyof T]?: DeepPartial<T[K]>;
14
- } : Partial<T>;
15
- interface MessageFns<T> {
16
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
17
- decode(input: BinaryReader | Uint8Array, length?: number): T;
18
- fromJSON(object: any): T;
19
- toJSON(message: T): unknown;
20
- create(base?: DeepPartial<T>): T;
21
- fromPartial(object: DeepPartial<T>): T;
22
- }
23
-
24
- export { type DeepPartial, type MessageFns, SelinuxPolicyRequest, protobufPackage };
@@ -1,9 +0,0 @@
1
- import {
2
- SelinuxPolicyRequest,
3
- protobufPackage
4
- } from "../chunk-7YGA6EOV.js";
5
- import "../chunk-ADS4GRIL.js";
6
- export {
7
- SelinuxPolicyRequest,
8
- protobufPackage
9
- };