@vicinae/api 0.3.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 (113) hide show
  1. package/README.md +37 -0
  2. package/bin/run.js +9 -0
  3. package/dist/api/ai.d.ts +110 -0
  4. package/dist/api/ai.js +120 -0
  5. package/dist/api/alert.d.ts +22 -0
  6. package/dist/api/alert.js +61 -0
  7. package/dist/api/bus.d.ts +95 -0
  8. package/dist/api/bus.js +211 -0
  9. package/dist/api/cache.d.ts +117 -0
  10. package/dist/api/cache.js +52 -0
  11. package/dist/api/clipboard.d.ts +34 -0
  12. package/dist/api/clipboard.js +52 -0
  13. package/dist/api/color.d.ts +24 -0
  14. package/dist/api/color.js +24 -0
  15. package/dist/api/components/action-pannel.d.ts +23 -0
  16. package/dist/api/components/action-pannel.js +30 -0
  17. package/dist/api/components/actions.d.ts +52 -0
  18. package/dist/api/components/actions.js +81 -0
  19. package/dist/api/components/detail.d.ts +21 -0
  20. package/dist/api/components/detail.js +12 -0
  21. package/dist/api/components/dropdown.d.ts +36 -0
  22. package/dist/api/components/dropdown.js +21 -0
  23. package/dist/api/components/empty-view.d.ts +9 -0
  24. package/dist/api/components/empty-view.js +12 -0
  25. package/dist/api/components/form.d.ts +81 -0
  26. package/dist/api/components/form.js +53 -0
  27. package/dist/api/components/grid.d.ts +117 -0
  28. package/dist/api/components/grid.js +80 -0
  29. package/dist/api/components/index.d.ts +7 -0
  30. package/dist/api/components/index.js +23 -0
  31. package/dist/api/components/list.d.ts +109 -0
  32. package/dist/api/components/list.js +53 -0
  33. package/dist/api/components/menu-bar.d.ts +26 -0
  34. package/dist/api/components/menu-bar.js +25 -0
  35. package/dist/api/components/metadata.d.ts +23 -0
  36. package/dist/api/components/metadata.js +27 -0
  37. package/dist/api/components/tag.d.ts +16 -0
  38. package/dist/api/components/tag.js +28 -0
  39. package/dist/api/context/index.d.ts +1 -0
  40. package/dist/api/context/index.js +17 -0
  41. package/dist/api/context/navigation-context.d.ts +7 -0
  42. package/dist/api/context/navigation-context.js +8 -0
  43. package/dist/api/context/navigation-provider.d.ts +4 -0
  44. package/dist/api/context/navigation-provider.js +40 -0
  45. package/dist/api/controls.d.ts +3 -0
  46. package/dist/api/controls.js +20 -0
  47. package/dist/api/environment.d.ts +118 -0
  48. package/dist/api/environment.js +17 -0
  49. package/dist/api/hooks/index.d.ts +2 -0
  50. package/dist/api/hooks/index.js +18 -0
  51. package/dist/api/hooks/use-applications.d.ts +2 -0
  52. package/dist/api/hooks/use-applications.js +19 -0
  53. package/dist/api/hooks/use-imperative-form-handle.d.ts +3 -0
  54. package/dist/api/hooks/use-imperative-form-handle.js +25 -0
  55. package/dist/api/hooks/use-navigation.d.ts +4 -0
  56. package/dist/api/hooks/use-navigation.js +13 -0
  57. package/dist/api/hooks.d.ts +1 -0
  58. package/dist/api/hooks.js +24 -0
  59. package/dist/api/icon.d.ts +444 -0
  60. package/dist/api/icon.js +448 -0
  61. package/dist/api/image.d.ts +35 -0
  62. package/dist/api/image.js +84 -0
  63. package/dist/api/index.d.ts +19 -0
  64. package/dist/api/index.js +35 -0
  65. package/dist/api/keyboard.d.ts +16 -0
  66. package/dist/api/keyboard.js +12 -0
  67. package/dist/api/lib/result.d.ts +9 -0
  68. package/dist/api/lib/result.js +11 -0
  69. package/dist/api/local-storage.d.ts +13 -0
  70. package/dist/api/local-storage.js +31 -0
  71. package/dist/api/oauth.d.ts +319 -0
  72. package/dist/api/oauth.js +166 -0
  73. package/dist/api/preference.d.ts +5 -0
  74. package/dist/api/preference.js +18 -0
  75. package/dist/api/proto/application.d.ts +48 -0
  76. package/dist/api/proto/application.js +378 -0
  77. package/dist/api/proto/clipboard.d.ts +65 -0
  78. package/dist/api/proto/clipboard.js +614 -0
  79. package/dist/api/proto/common.d.ts +28 -0
  80. package/dist/api/proto/common.js +102 -0
  81. package/dist/api/proto/extension.d.ts +68 -0
  82. package/dist/api/proto/extension.js +604 -0
  83. package/dist/api/proto/google/protobuf/struct.d.ts +107 -0
  84. package/dist/api/proto/google/protobuf/struct.js +456 -0
  85. package/dist/api/proto/ipc.d.ts +64 -0
  86. package/dist/api/proto/ipc.js +604 -0
  87. package/dist/api/proto/manager.d.ts +82 -0
  88. package/dist/api/proto/manager.js +689 -0
  89. package/dist/api/proto/oauth.d.ts +55 -0
  90. package/dist/api/proto/oauth.js +379 -0
  91. package/dist/api/proto/storage.d.ts +80 -0
  92. package/dist/api/proto/storage.js +804 -0
  93. package/dist/api/proto/ui.d.ts +186 -0
  94. package/dist/api/proto/ui.js +1993 -0
  95. package/dist/api/toast.d.ts +168 -0
  96. package/dist/api/toast.js +152 -0
  97. package/dist/api/utils.d.ts +15 -0
  98. package/dist/api/utils.js +64 -0
  99. package/dist/commands/build/index.d.ts +11 -0
  100. package/dist/commands/build/index.js +123 -0
  101. package/dist/commands/develop/index.d.ts +10 -0
  102. package/dist/commands/develop/index.js +193 -0
  103. package/dist/index.d.ts +1 -0
  104. package/dist/index.js +17 -0
  105. package/dist/schemas/manifest.d.ts +75 -0
  106. package/dist/schemas/manifest.js +4 -0
  107. package/dist/utils/logger.d.ts +13 -0
  108. package/dist/utils/logger.js +38 -0
  109. package/dist/utils/utils.d.ts +2 -0
  110. package/dist/utils/utils.js +19 -0
  111. package/dist/utils/vicinae.d.ts +12 -0
  112. package/dist/utils/vicinae.js +33 -0
  113. package/package.json +73 -0
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.7.5
5
+ // protoc v6.31.1
6
+ // source: common.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ErrorResponse = exports.AckResponse = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "proto.ext.common";
12
+ function createBaseAckResponse() {
13
+ return {};
14
+ }
15
+ exports.AckResponse = {
16
+ encode(_, writer = new wire_1.BinaryWriter()) {
17
+ return writer;
18
+ },
19
+ decode(input, length) {
20
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
21
+ const end = length === undefined ? reader.len : reader.pos + length;
22
+ const message = createBaseAckResponse();
23
+ while (reader.pos < end) {
24
+ const tag = reader.uint32();
25
+ switch (tag >>> 3) {
26
+ }
27
+ if ((tag & 7) === 4 || tag === 0) {
28
+ break;
29
+ }
30
+ reader.skip(tag & 7);
31
+ }
32
+ return message;
33
+ },
34
+ fromJSON(_) {
35
+ return {};
36
+ },
37
+ toJSON(_) {
38
+ const obj = {};
39
+ return obj;
40
+ },
41
+ create(base) {
42
+ return exports.AckResponse.fromPartial(base ?? {});
43
+ },
44
+ fromPartial(_) {
45
+ const message = createBaseAckResponse();
46
+ return message;
47
+ },
48
+ };
49
+ function createBaseErrorResponse() {
50
+ return { errorText: "" };
51
+ }
52
+ exports.ErrorResponse = {
53
+ encode(message, writer = new wire_1.BinaryWriter()) {
54
+ if (message.errorText !== "") {
55
+ writer.uint32(10).string(message.errorText);
56
+ }
57
+ return writer;
58
+ },
59
+ decode(input, length) {
60
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
61
+ const end = length === undefined ? reader.len : reader.pos + length;
62
+ const message = createBaseErrorResponse();
63
+ while (reader.pos < end) {
64
+ const tag = reader.uint32();
65
+ switch (tag >>> 3) {
66
+ case 1: {
67
+ if (tag !== 10) {
68
+ break;
69
+ }
70
+ message.errorText = reader.string();
71
+ continue;
72
+ }
73
+ }
74
+ if ((tag & 7) === 4 || tag === 0) {
75
+ break;
76
+ }
77
+ reader.skip(tag & 7);
78
+ }
79
+ return message;
80
+ },
81
+ fromJSON(object) {
82
+ return { errorText: isSet(object.errorText) ? globalThis.String(object.errorText) : "" };
83
+ },
84
+ toJSON(message) {
85
+ const obj = {};
86
+ if (message.errorText !== "") {
87
+ obj.errorText = message.errorText;
88
+ }
89
+ return obj;
90
+ },
91
+ create(base) {
92
+ return exports.ErrorResponse.fromPartial(base ?? {});
93
+ },
94
+ fromPartial(object) {
95
+ const message = createBaseErrorResponse();
96
+ message.errorText = object.errorText ?? "";
97
+ return message;
98
+ },
99
+ };
100
+ function isSet(value) {
101
+ return value !== null && value !== undefined;
102
+ }
@@ -0,0 +1,68 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Request as Request2, Response as Response7 } from "./application";
3
+ import { Request as Request3, Response as Response8 } from "./clipboard";
4
+ import { ErrorResponse } from "./common";
5
+ import { Request as Request5, Response as Response10 } from "./oauth";
6
+ import { Request as Request4, Response as Response9 } from "./storage";
7
+ import { Request as Request1, Response as Response6 } from "./ui";
8
+ export declare const protobufPackage = "proto.ext.extension";
9
+ export interface Request {
10
+ requestId: string;
11
+ data: RequestData | undefined;
12
+ }
13
+ export interface RequestData {
14
+ ui?: Request1 | undefined;
15
+ app?: Request2 | undefined;
16
+ clipboard?: Request3 | undefined;
17
+ storage?: Request4 | undefined;
18
+ oauth?: Request5 | undefined;
19
+ }
20
+ export interface Response {
21
+ requestId: string;
22
+ data?: ResponseData | undefined;
23
+ error?: ErrorResponse | undefined;
24
+ }
25
+ export interface ResponseData {
26
+ ui?: Response6 | undefined;
27
+ app?: Response7 | undefined;
28
+ clipboard?: Response8 | undefined;
29
+ storage?: Response9 | undefined;
30
+ oauth?: Response10 | undefined;
31
+ }
32
+ export interface Event {
33
+ id: string;
34
+ generic?: GenericEventData | undefined;
35
+ crash?: CrashEventData | undefined;
36
+ }
37
+ export interface CrashEventData {
38
+ text: string;
39
+ }
40
+ export interface GenericEventData {
41
+ json: string;
42
+ }
43
+ export declare const Request: MessageFns<Request>;
44
+ export declare const RequestData: MessageFns<RequestData>;
45
+ export declare const Response: MessageFns<Response>;
46
+ export declare const ResponseData: MessageFns<ResponseData>;
47
+ export declare const Event: MessageFns<Event>;
48
+ export declare const CrashEventData: MessageFns<CrashEventData>;
49
+ export declare const GenericEventData: MessageFns<GenericEventData>;
50
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
51
+ export 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 {} ? {
52
+ [K in keyof T]?: DeepPartial<T[K]>;
53
+ } : Partial<T>;
54
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
55
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
56
+ [K in keyof P]: Exact<P[K], I[K]>;
57
+ } & {
58
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
59
+ };
60
+ export interface MessageFns<T> {
61
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
62
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
63
+ fromJSON(object: any): T;
64
+ toJSON(message: T): unknown;
65
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
66
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
67
+ }
68
+ export {};