@replit/protocol 0.4.20 → 0.4.22

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 (55) hide show
  1. package/README.md +54 -0
  2. package/dist/api/client.d.ts +202 -0
  3. package/dist/api/client.d.ts.map +1 -0
  4. package/dist/api/client.js +394 -0
  5. package/dist/api/features/features.d.ts +112 -0
  6. package/dist/api/features/features.d.ts.map +1 -0
  7. package/dist/api/features/features.js +199 -0
  8. package/dist/api/lore/lore.d.ts +543 -0
  9. package/dist/api/lore/lore.d.ts.map +1 -0
  10. package/dist/api/lore/lore.js +982 -0
  11. package/dist/api/lore/service.client.d.ts +283 -0
  12. package/dist/api/lore/service.client.d.ts.map +1 -0
  13. package/dist/api/lore/service.client.js +172 -0
  14. package/dist/api/lore/service.d.ts +1100 -0
  15. package/dist/api/lore/service.d.ts.map +1 -0
  16. package/dist/api/lore/service.js +2279 -0
  17. package/dist/api/powerup.d.ts +147 -0
  18. package/dist/api/powerup.d.ts.map +1 -0
  19. package/dist/api/powerup.js +286 -0
  20. package/dist/api/repl/repl.d.ts +552 -0
  21. package/dist/api/repl/repl.d.ts.map +1 -0
  22. package/dist/api/repl/repl.js +787 -0
  23. package/dist/api/signing.d.ts +618 -0
  24. package/dist/api/signing.d.ts.map +1 -0
  25. package/dist/api/signing.js +785 -0
  26. package/dist/api/token/token.d.ts +335 -0
  27. package/dist/api/token/token.d.ts.map +1 -0
  28. package/dist/api/token/token.js +463 -0
  29. package/dist/api/types.d.ts +8629 -0
  30. package/dist/api/types.d.ts.map +1 -0
  31. package/dist/api/types.js +17225 -0
  32. package/dist/google/protobuf/empty.d.ts +31 -0
  33. package/dist/google/protobuf/empty.d.ts.map +1 -0
  34. package/dist/google/protobuf/empty.js +41 -0
  35. package/dist/google/protobuf/field_mask.d.ts +239 -0
  36. package/dist/google/protobuf/field_mask.d.ts.map +1 -0
  37. package/dist/google/protobuf/field_mask.js +83 -0
  38. package/dist/google/protobuf/struct.d.ts +186 -0
  39. package/dist/google/protobuf/struct.d.ts.map +1 -0
  40. package/dist/google/protobuf/struct.js +337 -0
  41. package/dist/google/protobuf/timestamp.d.ts +156 -0
  42. package/dist/google/protobuf/timestamp.d.ts.map +1 -0
  43. package/dist/google/protobuf/timestamp.js +132 -0
  44. package/dist/index.d.ts +13 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +16 -0
  47. package/dist/package.json +3 -0
  48. package/iotester/index.d.ts +6 -6
  49. package/iotester/index.js +25 -12
  50. package/main/index.d.ts +6 -6
  51. package/main/index.js +25 -12
  52. package/package.json +43 -4
  53. package/gen.sh +0 -51
  54. package/jsdoc.js +0 -171
  55. package/pnpm-workspace.yaml +0 -6
@@ -0,0 +1,112 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ /**
8
+ * Boosted provides parameters for the boosted feature (vertical scalability).
9
+ *
10
+ * @generated from protobuf message replit.goval.api.features.Boosted
11
+ */
12
+ export interface Boosted {
13
+ }
14
+ /**
15
+ * Viktor enables the Viktor vector database that powers RAG.
16
+ *
17
+ * @generated from protobuf message replit.goval.api.features.Viktor
18
+ */
19
+ export interface Viktor {
20
+ }
21
+ /**
22
+ * Notary enables the notary sidecar container.
23
+ *
24
+ * @generated from protobuf message replit.goval.api.features.Notary
25
+ */
26
+ export interface Notary {
27
+ }
28
+ /**
29
+ * @generated from protobuf message replit.goval.api.features.Feature
30
+ */
31
+ export interface Feature {
32
+ /**
33
+ * @generated from protobuf oneof: feature
34
+ */
35
+ feature: {
36
+ oneofKind: "boosted";
37
+ /**
38
+ * The Boosted feature provides the repl with a guaranteed reservation of
39
+ * CPU and Memory instead of overcommitting.
40
+ *
41
+ * @generated from protobuf field: replit.goval.api.features.Boosted boosted = 2
42
+ */
43
+ boosted: Boosted;
44
+ } | {
45
+ oneofKind: "viktor";
46
+ /**
47
+ * Viktor enables the Viktor vector database that powers RAG.
48
+ *
49
+ * @generated from protobuf field: replit.goval.api.features.Viktor viktor = 5
50
+ */
51
+ viktor: Viktor;
52
+ } | {
53
+ oneofKind: "notary";
54
+ /**
55
+ * Notary enables the notary sidecar container.
56
+ *
57
+ * @generated from protobuf field: replit.goval.api.features.Notary notary = 6
58
+ */
59
+ notary: Notary;
60
+ } | {
61
+ oneofKind: undefined;
62
+ };
63
+ /**
64
+ * If true, this feature is required for the repl to be acquired.
65
+ * If false or unset, this feature is optional and the server can fall back to
66
+ * a sensible default if the feature can not be enabled.
67
+ *
68
+ * @generated from protobuf field: bool required = 3
69
+ */
70
+ required: boolean;
71
+ }
72
+ declare class Boosted$Type extends MessageType<Boosted> {
73
+ constructor();
74
+ create(value?: PartialMessage<Boosted>): Boosted;
75
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Boosted): Boosted;
76
+ internalBinaryWrite(message: Boosted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
77
+ }
78
+ /**
79
+ * @generated MessageType for protobuf message replit.goval.api.features.Boosted
80
+ */
81
+ export declare const Boosted: Boosted$Type;
82
+ declare class Viktor$Type extends MessageType<Viktor> {
83
+ constructor();
84
+ create(value?: PartialMessage<Viktor>): Viktor;
85
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Viktor): Viktor;
86
+ internalBinaryWrite(message: Viktor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
87
+ }
88
+ /**
89
+ * @generated MessageType for protobuf message replit.goval.api.features.Viktor
90
+ */
91
+ export declare const Viktor: Viktor$Type;
92
+ declare class Notary$Type extends MessageType<Notary> {
93
+ constructor();
94
+ create(value?: PartialMessage<Notary>): Notary;
95
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notary): Notary;
96
+ internalBinaryWrite(message: Notary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
97
+ }
98
+ /**
99
+ * @generated MessageType for protobuf message replit.goval.api.features.Notary
100
+ */
101
+ export declare const Notary: Notary$Type;
102
+ declare class Feature$Type extends MessageType<Feature> {
103
+ constructor();
104
+ create(value?: PartialMessage<Feature>): Feature;
105
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Feature): Feature;
106
+ internalBinaryWrite(message: Feature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
107
+ }
108
+ /**
109
+ * @generated MessageType for protobuf message replit.goval.api.features.Feature
110
+ */
111
+ export declare const Feature: Feature$Type;
112
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.d.ts","sourceRoot":"","sources":["features.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD;;;;GAIG;AACH,MAAM,WAAW,OAAO;CACvB;AACD;;;;GAIG;AACH,MAAM,WAAW,MAAM;CACtB;AACD;;;;GAIG;AACH,MAAM,WAAW,MAAM;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,OAAO,EAAE;QACL,SAAS,EAAE,SAAS,CAAC;QACrB;;;;;WAKG;QACH,OAAO,EAAE,OAAO,CAAC;KACpB,GAAG;QACA,SAAS,EAAE,QAAQ,CAAC;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AAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAgB9G,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAM1G;AACD;;GAEG;AACH,eAAO,MAAM,MAAM,aAAoB,CAAC;AAExC,cAAM,YAAa,SAAQ,WAAW,CAAC,OAAO,CAAC;;IAS3C,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,OAAO;IAQhD,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAqChH,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAkB3G;AACD;;GAEG;AACH,eAAO,MAAM,OAAO,cAAqB,CAAC"}
@@ -0,0 +1,199 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter long_type_bigint,optimize_code_size,generate_dependencies,force_server_none
2
+ // @generated from protobuf file "api/features/features.proto" (package "replit.goval.api.features", syntax proto3)
3
+ // tslint:disable
4
+ import { WireType } from "@protobuf-ts/runtime";
5
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
6
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
7
+ import { MessageType } from "@protobuf-ts/runtime";
8
+ // @generated message type with reflection information, may provide speed optimized methods
9
+ class Boosted$Type extends MessageType {
10
+ constructor() {
11
+ super("replit.goval.api.features.Boosted", []);
12
+ }
13
+ create(value) {
14
+ const message = globalThis.Object.create((this.messagePrototype));
15
+ if (value !== undefined)
16
+ reflectionMergePartial(this, message, value);
17
+ return message;
18
+ }
19
+ internalBinaryRead(reader, length, options, target) {
20
+ let message = target ?? this.create(), end = reader.pos + length;
21
+ while (reader.pos < end) {
22
+ let [fieldNo, wireType] = reader.tag();
23
+ switch (fieldNo) {
24
+ default:
25
+ let u = options.readUnknownField;
26
+ if (u === "throw")
27
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
28
+ let d = reader.skip(wireType);
29
+ if (u !== false)
30
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
31
+ }
32
+ }
33
+ return message;
34
+ }
35
+ internalBinaryWrite(message, writer, options) {
36
+ let u = options.writeUnknownFields;
37
+ if (u !== false)
38
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
39
+ return writer;
40
+ }
41
+ }
42
+ /**
43
+ * @generated MessageType for protobuf message replit.goval.api.features.Boosted
44
+ */
45
+ export const Boosted = new Boosted$Type();
46
+ // @generated message type with reflection information, may provide speed optimized methods
47
+ class Viktor$Type extends MessageType {
48
+ constructor() {
49
+ super("replit.goval.api.features.Viktor", []);
50
+ }
51
+ create(value) {
52
+ const message = globalThis.Object.create((this.messagePrototype));
53
+ if (value !== undefined)
54
+ reflectionMergePartial(this, message, value);
55
+ return message;
56
+ }
57
+ internalBinaryRead(reader, length, options, target) {
58
+ let message = target ?? this.create(), end = reader.pos + length;
59
+ while (reader.pos < end) {
60
+ let [fieldNo, wireType] = reader.tag();
61
+ switch (fieldNo) {
62
+ default:
63
+ let u = options.readUnknownField;
64
+ if (u === "throw")
65
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
66
+ let d = reader.skip(wireType);
67
+ if (u !== false)
68
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
69
+ }
70
+ }
71
+ return message;
72
+ }
73
+ internalBinaryWrite(message, writer, options) {
74
+ let u = options.writeUnknownFields;
75
+ if (u !== false)
76
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
77
+ return writer;
78
+ }
79
+ }
80
+ /**
81
+ * @generated MessageType for protobuf message replit.goval.api.features.Viktor
82
+ */
83
+ export const Viktor = new Viktor$Type();
84
+ // @generated message type with reflection information, may provide speed optimized methods
85
+ class Notary$Type extends MessageType {
86
+ constructor() {
87
+ super("replit.goval.api.features.Notary", []);
88
+ }
89
+ create(value) {
90
+ const message = globalThis.Object.create((this.messagePrototype));
91
+ if (value !== undefined)
92
+ reflectionMergePartial(this, message, value);
93
+ return message;
94
+ }
95
+ internalBinaryRead(reader, length, options, target) {
96
+ let message = target ?? this.create(), end = reader.pos + length;
97
+ while (reader.pos < end) {
98
+ let [fieldNo, wireType] = reader.tag();
99
+ switch (fieldNo) {
100
+ default:
101
+ let u = options.readUnknownField;
102
+ if (u === "throw")
103
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
104
+ let d = reader.skip(wireType);
105
+ if (u !== false)
106
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
107
+ }
108
+ }
109
+ return message;
110
+ }
111
+ internalBinaryWrite(message, writer, options) {
112
+ let u = options.writeUnknownFields;
113
+ if (u !== false)
114
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
115
+ return writer;
116
+ }
117
+ }
118
+ /**
119
+ * @generated MessageType for protobuf message replit.goval.api.features.Notary
120
+ */
121
+ export const Notary = new Notary$Type();
122
+ // @generated message type with reflection information, may provide speed optimized methods
123
+ class Feature$Type extends MessageType {
124
+ constructor() {
125
+ super("replit.goval.api.features.Feature", [
126
+ { no: 2, name: "boosted", kind: "message", oneof: "feature", T: () => Boosted },
127
+ { no: 5, name: "viktor", kind: "message", oneof: "feature", T: () => Viktor },
128
+ { no: 6, name: "notary", kind: "message", oneof: "feature", T: () => Notary },
129
+ { no: 3, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
130
+ ]);
131
+ }
132
+ create(value) {
133
+ const message = globalThis.Object.create((this.messagePrototype));
134
+ message.feature = { oneofKind: undefined };
135
+ message.required = false;
136
+ if (value !== undefined)
137
+ reflectionMergePartial(this, message, value);
138
+ return message;
139
+ }
140
+ internalBinaryRead(reader, length, options, target) {
141
+ let message = target ?? this.create(), end = reader.pos + length;
142
+ while (reader.pos < end) {
143
+ let [fieldNo, wireType] = reader.tag();
144
+ switch (fieldNo) {
145
+ case /* replit.goval.api.features.Boosted boosted */ 2:
146
+ message.feature = {
147
+ oneofKind: "boosted",
148
+ boosted: Boosted.internalBinaryRead(reader, reader.uint32(), options, message.feature.boosted)
149
+ };
150
+ break;
151
+ case /* replit.goval.api.features.Viktor viktor */ 5:
152
+ message.feature = {
153
+ oneofKind: "viktor",
154
+ viktor: Viktor.internalBinaryRead(reader, reader.uint32(), options, message.feature.viktor)
155
+ };
156
+ break;
157
+ case /* replit.goval.api.features.Notary notary */ 6:
158
+ message.feature = {
159
+ oneofKind: "notary",
160
+ notary: Notary.internalBinaryRead(reader, reader.uint32(), options, message.feature.notary)
161
+ };
162
+ break;
163
+ case /* bool required */ 3:
164
+ message.required = reader.bool();
165
+ break;
166
+ default:
167
+ let u = options.readUnknownField;
168
+ if (u === "throw")
169
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
170
+ let d = reader.skip(wireType);
171
+ if (u !== false)
172
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
173
+ }
174
+ }
175
+ return message;
176
+ }
177
+ internalBinaryWrite(message, writer, options) {
178
+ /* replit.goval.api.features.Boosted boosted = 2; */
179
+ if (message.feature.oneofKind === "boosted")
180
+ Boosted.internalBinaryWrite(message.feature.boosted, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
181
+ /* bool required = 3; */
182
+ if (message.required !== false)
183
+ writer.tag(3, WireType.Varint).bool(message.required);
184
+ /* replit.goval.api.features.Viktor viktor = 5; */
185
+ if (message.feature.oneofKind === "viktor")
186
+ Viktor.internalBinaryWrite(message.feature.viktor, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
187
+ /* replit.goval.api.features.Notary notary = 6; */
188
+ if (message.feature.oneofKind === "notary")
189
+ Notary.internalBinaryWrite(message.feature.notary, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
190
+ let u = options.writeUnknownFields;
191
+ if (u !== false)
192
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
193
+ return writer;
194
+ }
195
+ }
196
+ /**
197
+ * @generated MessageType for protobuf message replit.goval.api.features.Feature
198
+ */
199
+ export const Feature = new Feature$Type();