@ekhein/lamda-node-sdk 1.0.1 → 1.0.2

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 (109) hide show
  1. package/dist/chunk-3HDKHFYE.js +1602 -0
  2. package/dist/chunk-3JBDAA2H.js +439 -0
  3. package/dist/chunk-4AHM55IO.js +1172 -0
  4. package/dist/chunk-6HD35RPW.js +5370 -0
  5. package/dist/chunk-7XF22HAW.js +907 -0
  6. package/dist/chunk-7YGA6EOV.js +109 -0
  7. package/dist/chunk-ADS4GRIL.js +14 -0
  8. package/dist/chunk-FSLE4VGI.js +48 -0
  9. package/dist/chunk-H7Z6XFBF.js +134 -0
  10. package/dist/chunk-KJKSI2WL.js +62 -0
  11. package/dist/chunk-O52JGDU7.js +800 -0
  12. package/dist/chunk-ORXTTWPB.js +379 -0
  13. package/dist/chunk-OZJH6SR7.js +20 -0
  14. package/dist/chunk-P53F45YO.js +64 -0
  15. package/dist/chunk-QXMPY6EE.js +289 -0
  16. package/dist/chunk-SBFKX3ZY.js +1554 -0
  17. package/dist/chunk-WFQEBPE6.js +300 -0
  18. package/dist/chunk-X4LTH2UN.js +983 -0
  19. package/dist/chunk-XAX5BZL3.js +132 -0
  20. package/dist/chunk-ZXF5DGTC.js +45 -0
  21. package/dist/constants/activity.flag.cjs +92 -0
  22. package/dist/constants/activity.flag.d.cts +24 -0
  23. package/dist/constants/activity.flag.d.ts +24 -0
  24. package/dist/constants/activity.flag.js +49 -0
  25. package/dist/constants/android.permission.cjs +116 -0
  26. package/dist/constants/android.permission.d.cts +32 -0
  27. package/dist/constants/android.permission.d.ts +32 -0
  28. package/dist/constants/android.permission.js +65 -0
  29. package/dist/constants/index.cjs +186 -0
  30. package/dist/constants/index.d.cts +2 -0
  31. package/dist/constants/index.d.ts +2 -0
  32. package/dist/constants/index.js +111 -0
  33. package/dist/decorators/inject.decorator.cjs +43 -0
  34. package/dist/decorators/inject.decorator.d.cts +5 -0
  35. package/dist/decorators/inject.decorator.d.ts +5 -0
  36. package/dist/decorators/inject.decorator.js +7 -0
  37. package/dist/main.cjs +1 -2
  38. package/dist/main.d.cts +17 -1152
  39. package/dist/main.d.ts +17 -1152
  40. package/dist/main.js +36 -11873
  41. package/dist/rpc/application.cjs +2019 -0
  42. package/dist/rpc/application.d.cts +138 -0
  43. package/dist/rpc/application.d.ts +138 -0
  44. package/dist/rpc/application.js +50 -0
  45. package/dist/rpc/debug.cjs +86 -0
  46. package/dist/rpc/debug.d.cts +21 -0
  47. package/dist/rpc/debug.d.ts +21 -0
  48. package/dist/rpc/debug.js +9 -0
  49. package/dist/rpc/file.cjs +405 -0
  50. package/dist/rpc/file.d.cts +40 -0
  51. package/dist/rpc/file.d.ts +40 -0
  52. package/dist/rpc/file.js +13 -0
  53. package/dist/rpc/google/protobuf/any.cjs +126 -0
  54. package/dist/rpc/google/protobuf/any.d.cts +22 -0
  55. package/dist/rpc/google/protobuf/any.d.ts +22 -0
  56. package/dist/rpc/google/protobuf/any.js +103 -0
  57. package/dist/rpc/google/protobuf/empty.cjs +69 -0
  58. package/dist/rpc/google/protobuf/empty.d.cts +20 -0
  59. package/dist/rpc/google/protobuf/empty.d.ts +20 -0
  60. package/dist/rpc/google/protobuf/empty.js +9 -0
  61. package/dist/rpc/google/protobuf/struct.cjs +469 -0
  62. package/dist/rpc/google/protobuf/struct.d.cts +65 -0
  63. package/dist/rpc/google/protobuf/struct.d.ts +65 -0
  64. package/dist/rpc/google/protobuf/struct.js +21 -0
  65. package/dist/rpc/policy.cjs +133 -0
  66. package/dist/rpc/policy.d.cts +24 -0
  67. package/dist/rpc/policy.d.ts +24 -0
  68. package/dist/rpc/policy.js +9 -0
  69. package/dist/rpc/proxy.cjs +1109 -0
  70. package/dist/rpc/proxy.d.cts +108 -0
  71. package/dist/rpc/proxy.d.ts +108 -0
  72. package/dist/rpc/proxy.js +49 -0
  73. package/dist/rpc/services.cjs +11898 -0
  74. package/dist/rpc/services.d.cts +1920 -0
  75. package/dist/rpc/services.d.ts +1920 -0
  76. package/dist/rpc/services.js +48 -0
  77. package/dist/rpc/settings.cjs +161 -0
  78. package/dist/rpc/settings.d.cts +31 -0
  79. package/dist/rpc/settings.d.ts +31 -0
  80. package/dist/rpc/settings.js +15 -0
  81. package/dist/rpc/shell.cjs +326 -0
  82. package/dist/rpc/shell.d.cts +36 -0
  83. package/dist/rpc/shell.d.ts +36 -0
  84. package/dist/rpc/shell.js +13 -0
  85. package/dist/rpc/status.cjs +936 -0
  86. package/dist/rpc/status.d.cts +76 -0
  87. package/dist/rpc/status.d.ts +76 -0
  88. package/dist/rpc/status.js +19 -0
  89. package/dist/rpc/storage.cjs +156 -0
  90. package/dist/rpc/storage.d.cts +24 -0
  91. package/dist/rpc/storage.d.ts +24 -0
  92. package/dist/rpc/storage.js +9 -0
  93. package/dist/rpc/types.cjs +317 -0
  94. package/dist/rpc/types.d.cts +36 -0
  95. package/dist/rpc/types.d.ts +36 -0
  96. package/dist/rpc/types.js +17 -0
  97. package/dist/rpc/uiautomator.cjs +5446 -0
  98. package/dist/rpc/uiautomator.d.cts +618 -0
  99. package/dist/rpc/uiautomator.d.ts +618 -0
  100. package/dist/rpc/uiautomator.js +113 -0
  101. package/dist/rpc/util.cjs +1212 -0
  102. package/dist/rpc/util.d.cts +103 -0
  103. package/dist/rpc/util.d.ts +103 -0
  104. package/dist/rpc/util.js +41 -0
  105. package/dist/rpc/wifi.cjs +1015 -0
  106. package/dist/rpc/wifi.d.cts +84 -0
  107. package/dist/rpc/wifi.d.ts +84 -0
  108. package/dist/rpc/wifi.js +25 -0
  109. package/package.json +3 -4
@@ -0,0 +1,65 @@
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 };
@@ -0,0 +1,65 @@
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 };
@@ -0,0 +1,21 @@
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
+ };
@@ -0,0 +1,133 @@
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
+ });
@@ -0,0 +1,24 @@
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 };
@@ -0,0 +1,24 @@
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 };
@@ -0,0 +1,9 @@
1
+ import {
2
+ SelinuxPolicyRequest,
3
+ protobufPackage
4
+ } from "../chunk-7YGA6EOV.js";
5
+ import "../chunk-ADS4GRIL.js";
6
+ export {
7
+ SelinuxPolicyRequest,
8
+ protobufPackage
9
+ };