@replit/protocol 0.4.25 → 0.4.27
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/README.md +1 -1
- package/dist/api/lore/service.d.ts +7 -0
- package/dist/api/lore/service.js +9 -1
- package/dist/api/repl/repl.d.ts +7 -0
- package/dist/api/repl/repl.js +9 -1
- package/dist/api/token/token.d.ts +20 -2
- package/dist/api/token/token.js +17 -1
- package/dist/api/types.d.ts +5 -1
- package/dist/api/types.js +4 -0
- package/dist/google/protobuf/duration.d.ts +112 -0
- package/dist/google/protobuf/duration.js +104 -0
- package/iotester/index.d.ts +129 -1
- package/iotester/index.js +361 -0
- package/main/index.d.ts +129 -1
- package/main/index.js +361 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ The ESM build enables ~80-90% bundle size reduction through tree-shaking:
|
|
|
78
78
|
After your `.proto` changes are merged:
|
|
79
79
|
- create a new branch
|
|
80
80
|
- cd into `api/npm`
|
|
81
|
-
- `pnpm --no-git-tag-version
|
|
81
|
+
- `pnpm version <new-version> --no-git-tag-version`
|
|
82
82
|
- submit a pull request
|
|
83
83
|
- merged
|
|
84
84
|
- pull latest `main`
|
|
@@ -84,6 +84,13 @@ export interface Cluster {
|
|
|
84
84
|
* @generated from protobuf field: string nox_host = 5
|
|
85
85
|
*/
|
|
86
86
|
noxHost: string;
|
|
87
|
+
/**
|
|
88
|
+
* ChateauUrl is the url of the chateau service for this cluster. May be
|
|
89
|
+
* empty for clusters whose chateau deployment is not yet provisioned.
|
|
90
|
+
*
|
|
91
|
+
* @generated from protobuf field: string chateau_url = 6
|
|
92
|
+
*/
|
|
93
|
+
chateauUrl: string;
|
|
87
94
|
}
|
|
88
95
|
/**
|
|
89
96
|
* @generated from protobuf message replit.goval.api.lore.CreateReplRequest
|
package/dist/api/lore/service.js
CHANGED
|
@@ -139,7 +139,8 @@ class Cluster$Type extends MessageType {
|
|
|
139
139
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
140
140
|
{ no: 2, name: "conman_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
141
141
|
{ no: 3, name: "gurl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
142
|
-
{ no: 5, name: "nox_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
142
|
+
{ no: 5, name: "nox_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
143
|
+
{ no: 6, name: "chateau_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
143
144
|
]);
|
|
144
145
|
}
|
|
145
146
|
create(value) {
|
|
@@ -148,6 +149,7 @@ class Cluster$Type extends MessageType {
|
|
|
148
149
|
message.conmanUrl = "";
|
|
149
150
|
message.gurl = "";
|
|
150
151
|
message.noxHost = "";
|
|
152
|
+
message.chateauUrl = "";
|
|
151
153
|
if (value !== undefined)
|
|
152
154
|
reflectionMergePartial(this, message, value);
|
|
153
155
|
return message;
|
|
@@ -169,6 +171,9 @@ class Cluster$Type extends MessageType {
|
|
|
169
171
|
case /* string nox_host */ 5:
|
|
170
172
|
message.noxHost = reader.string();
|
|
171
173
|
break;
|
|
174
|
+
case /* string chateau_url */ 6:
|
|
175
|
+
message.chateauUrl = reader.string();
|
|
176
|
+
break;
|
|
172
177
|
default:
|
|
173
178
|
let u = options.readUnknownField;
|
|
174
179
|
if (u === "throw")
|
|
@@ -193,6 +198,9 @@ class Cluster$Type extends MessageType {
|
|
|
193
198
|
/* string nox_host = 5; */
|
|
194
199
|
if (message.noxHost !== "")
|
|
195
200
|
writer.tag(5, WireType.LengthDelimited).string(message.noxHost);
|
|
201
|
+
/* string chateau_url = 6; */
|
|
202
|
+
if (message.chateauUrl !== "")
|
|
203
|
+
writer.tag(6, WireType.LengthDelimited).string(message.chateauUrl);
|
|
196
204
|
let u = options.writeUnknownFields;
|
|
197
205
|
if (u !== false)
|
|
198
206
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/dist/api/repl/repl.d.ts
CHANGED
|
@@ -149,6 +149,13 @@ export interface Repl {
|
|
|
149
149
|
backerJobMetadata: {
|
|
150
150
|
[key: string]: string;
|
|
151
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* GCS bucket for this owner's custom skills. Empty for free owners and
|
|
154
|
+
* for owners that have not authored any custom skills yet.
|
|
155
|
+
*
|
|
156
|
+
* @generated from protobuf field: string custom_skills_bucket = 18
|
|
157
|
+
*/
|
|
158
|
+
customSkillsBucket: string;
|
|
152
159
|
}
|
|
153
160
|
/**
|
|
154
161
|
* autocontainer needs to know if we are in a teams org
|
package/dist/api/repl/repl.js
CHANGED
|
@@ -202,7 +202,8 @@ class Repl$Type extends MessageType {
|
|
|
202
202
|
{ no: 13, name: "log_fields", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
203
203
|
{ no: 15, name: "use_repl_shield", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
204
204
|
{ no: 16, name: "connectors_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
205
|
-
{ no: 17, name: "backer_job_metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
205
|
+
{ no: 17, name: "backer_job_metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
206
|
+
{ no: 18, name: "custom_skills_bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
206
207
|
]);
|
|
207
208
|
}
|
|
208
209
|
create(value) {
|
|
@@ -220,6 +221,7 @@ class Repl$Type extends MessageType {
|
|
|
220
221
|
message.useReplShield = false;
|
|
221
222
|
message.connectorsHost = "";
|
|
222
223
|
message.backerJobMetadata = {};
|
|
224
|
+
message.customSkillsBucket = "";
|
|
223
225
|
if (value !== undefined)
|
|
224
226
|
reflectionMergePartial(this, message, value);
|
|
225
227
|
return message;
|
|
@@ -277,6 +279,9 @@ class Repl$Type extends MessageType {
|
|
|
277
279
|
case /* map<string, string> backer_job_metadata */ 17:
|
|
278
280
|
this.binaryReadMap17(message.backerJobMetadata, reader, options);
|
|
279
281
|
break;
|
|
282
|
+
case /* string custom_skills_bucket */ 18:
|
|
283
|
+
message.customSkillsBucket = reader.string();
|
|
284
|
+
break;
|
|
280
285
|
default:
|
|
281
286
|
let u = options.readUnknownField;
|
|
282
287
|
if (u === "throw")
|
|
@@ -353,6 +358,9 @@ class Repl$Type extends MessageType {
|
|
|
353
358
|
/* map<string, string> backer_job_metadata = 17; */
|
|
354
359
|
for (let k of globalThis.Object.keys(message.backerJobMetadata))
|
|
355
360
|
writer.tag(17, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.backerJobMetadata[k]).join();
|
|
361
|
+
/* string custom_skills_bucket = 18; */
|
|
362
|
+
if (message.customSkillsBucket !== "")
|
|
363
|
+
writer.tag(18, WireType.LengthDelimited).string(message.customSkillsBucket);
|
|
356
364
|
let u = options.writeUnknownFields;
|
|
357
365
|
if (u !== false)
|
|
358
366
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4,6 +4,7 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
4
4
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
5
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
6
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { Duration } from "../../google/protobuf/duration.js";
|
|
7
8
|
import { Pid2Binary } from "../repl/repl.js";
|
|
8
9
|
import { BuildInfo } from "../repl/repl.js";
|
|
9
10
|
import { Feature } from "../features/features.js";
|
|
@@ -102,7 +103,9 @@ export interface ReplToken {
|
|
|
102
103
|
oneofKind: undefined;
|
|
103
104
|
};
|
|
104
105
|
/**
|
|
105
|
-
* The resource limits for the container.
|
|
106
|
+
* The resource limits for the container. Goval 3 does not use this field for
|
|
107
|
+
* ReplPool/resource-tier selection; token producers should set resource_tier
|
|
108
|
+
* instead.
|
|
106
109
|
*
|
|
107
110
|
* @generated from protobuf field: replit.goval.api.repl.ResourceLimits resourceLimits = 10
|
|
108
111
|
*/
|
|
@@ -110,7 +113,8 @@ export interface ReplToken {
|
|
|
110
113
|
/**
|
|
111
114
|
* The resource limits for the container, when running in interactive mode.
|
|
112
115
|
* These limits have priority over `resourceLimits` if present, and are never
|
|
113
|
-
* cached.
|
|
116
|
+
* cached. Goval 3 does not use this field for ReplPool/resource-tier
|
|
117
|
+
* selection; token producers should set resource_tier instead.
|
|
114
118
|
*
|
|
115
119
|
* @generated from protobuf field: replit.goval.api.repl.ResourceLimits interactiveResourceLimits = 17
|
|
116
120
|
*/
|
|
@@ -182,6 +186,20 @@ export interface ReplToken {
|
|
|
182
186
|
* @generated from protobuf field: google.protobuf.Timestamp before = 23
|
|
183
187
|
*/
|
|
184
188
|
before?: Timestamp;
|
|
189
|
+
/**
|
|
190
|
+
* Resource tier selects the Goval 3 ReplPool/resource shape. Current values
|
|
191
|
+
* are "free-medium", "paid-medium", and "paid-large". This is only used by
|
|
192
|
+
* Goval 3.
|
|
193
|
+
*
|
|
194
|
+
* @generated from protobuf field: string resource_tier = 25
|
|
195
|
+
*/
|
|
196
|
+
resourceTier: string;
|
|
197
|
+
/**
|
|
198
|
+
* Idle timeout override for this repl.
|
|
199
|
+
*
|
|
200
|
+
* @generated from protobuf field: optional google.protobuf.Duration idle_timeout = 26
|
|
201
|
+
*/
|
|
202
|
+
idleTimeout?: Duration;
|
|
185
203
|
}
|
|
186
204
|
/**
|
|
187
205
|
* Metadata for the classroom. This is deprecated and should be removed
|
package/dist/api/token/token.js
CHANGED
|
@@ -2,6 +2,7 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
2
2
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
3
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
4
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { Duration } from "../../google/protobuf/duration.js";
|
|
5
6
|
import { Pid2Binary } from "../repl/repl.js";
|
|
6
7
|
import { BuildInfo } from "../repl/repl.js";
|
|
7
8
|
import { Feature } from "../features/features.js";
|
|
@@ -66,7 +67,9 @@ class ReplToken$Type extends MessageType {
|
|
|
66
67
|
{ no: 20, name: "paid", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
67
68
|
{ no: 21, name: "replexec", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
68
69
|
{ no: 22, name: "external_secrets", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ReplToken_ExternalSecret },
|
|
69
|
-
{ no: 23, name: "before", kind: "message", T: () => Timestamp }
|
|
70
|
+
{ no: 23, name: "before", kind: "message", T: () => Timestamp },
|
|
71
|
+
{ no: 25, name: "resource_tier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
72
|
+
{ no: 26, name: "idle_timeout", kind: "message", T: () => Duration }
|
|
70
73
|
]);
|
|
71
74
|
}
|
|
72
75
|
create(value) {
|
|
@@ -81,6 +84,7 @@ class ReplToken$Type extends MessageType {
|
|
|
81
84
|
message.paid = false;
|
|
82
85
|
message.replexec = false;
|
|
83
86
|
message.externalSecrets = [];
|
|
87
|
+
message.resourceTier = "";
|
|
84
88
|
if (value !== undefined)
|
|
85
89
|
reflectionMergePartial(this, message, value);
|
|
86
90
|
return message;
|
|
@@ -159,6 +163,12 @@ class ReplToken$Type extends MessageType {
|
|
|
159
163
|
case /* google.protobuf.Timestamp before */ 23:
|
|
160
164
|
message.before = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.before);
|
|
161
165
|
break;
|
|
166
|
+
case /* string resource_tier */ 25:
|
|
167
|
+
message.resourceTier = reader.string();
|
|
168
|
+
break;
|
|
169
|
+
case /* optional google.protobuf.Duration idle_timeout */ 26:
|
|
170
|
+
message.idleTimeout = Duration.internalBinaryRead(reader, reader.uint32(), options, message.idleTimeout);
|
|
171
|
+
break;
|
|
162
172
|
default:
|
|
163
173
|
let u = options.readUnknownField;
|
|
164
174
|
if (u === "throw")
|
|
@@ -231,6 +241,12 @@ class ReplToken$Type extends MessageType {
|
|
|
231
241
|
/* google.protobuf.Timestamp before = 23; */
|
|
232
242
|
if (message.before)
|
|
233
243
|
Timestamp.internalBinaryWrite(message.before, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
|
|
244
|
+
/* string resource_tier = 25; */
|
|
245
|
+
if (message.resourceTier !== "")
|
|
246
|
+
writer.tag(25, WireType.LengthDelimited).string(message.resourceTier);
|
|
247
|
+
/* optional google.protobuf.Duration idle_timeout = 26; */
|
|
248
|
+
if (message.idleTimeout)
|
|
249
|
+
Duration.internalBinaryWrite(message.idleTimeout, writer.tag(26, WireType.LengthDelimited).fork(), options).join();
|
|
234
250
|
let u = options.writeUnknownFields;
|
|
235
251
|
if (u !== false)
|
|
236
252
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/dist/api/types.d.ts
CHANGED
|
@@ -4538,7 +4538,11 @@ export declare enum DeploymentConfig_Target {
|
|
|
4538
4538
|
/**
|
|
4539
4539
|
* @generated from protobuf enum value: DATABRICKS_APP = 7;
|
|
4540
4540
|
*/
|
|
4541
|
-
DATABRICKS_APP = 7
|
|
4541
|
+
DATABRICKS_APP = 7,
|
|
4542
|
+
/**
|
|
4543
|
+
* @generated from protobuf enum value: RAYFIN_APP = 8;
|
|
4544
|
+
*/
|
|
4545
|
+
RAYFIN_APP = 8
|
|
4542
4546
|
}
|
|
4543
4547
|
/**
|
|
4544
4548
|
* @generated from protobuf message replit.goval.api.ExtensionConfig
|
package/dist/api/types.js
CHANGED
|
@@ -358,6 +358,10 @@ export var DeploymentConfig_Target;
|
|
|
358
358
|
* @generated from protobuf enum value: DATABRICKS_APP = 7;
|
|
359
359
|
*/
|
|
360
360
|
DeploymentConfig_Target[DeploymentConfig_Target["DATABRICKS_APP"] = 7] = "DATABRICKS_APP";
|
|
361
|
+
/**
|
|
362
|
+
* @generated from protobuf enum value: RAYFIN_APP = 8;
|
|
363
|
+
*/
|
|
364
|
+
DeploymentConfig_Target[DeploymentConfig_Target["RAYFIN_APP"] = 8] = "RAYFIN_APP";
|
|
361
365
|
})(DeploymentConfig_Target || (DeploymentConfig_Target = {}));
|
|
362
366
|
/**
|
|
363
367
|
* @generated from protobuf enum replit.goval.api.NixModuleConfigSetResponse.Status
|
|
@@ -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 type { JsonValue } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
/**
|
|
11
|
+
* A Duration represents a signed, fixed-length span of time represented
|
|
12
|
+
* as a count of seconds and fractions of seconds at nanosecond
|
|
13
|
+
* resolution. It is independent of any calendar and concepts like "day"
|
|
14
|
+
* or "month". It is related to Timestamp in that the difference between
|
|
15
|
+
* two Timestamp values is a Duration and it can be added or subtracted
|
|
16
|
+
* from a Timestamp. Range is approximately +-10,000 years.
|
|
17
|
+
*
|
|
18
|
+
* # Examples
|
|
19
|
+
*
|
|
20
|
+
* Example 1: Compute Duration from two Timestamps in pseudo code.
|
|
21
|
+
*
|
|
22
|
+
* Timestamp start = ...;
|
|
23
|
+
* Timestamp end = ...;
|
|
24
|
+
* Duration duration = ...;
|
|
25
|
+
*
|
|
26
|
+
* duration.seconds = end.seconds - start.seconds;
|
|
27
|
+
* duration.nanos = end.nanos - start.nanos;
|
|
28
|
+
*
|
|
29
|
+
* if (duration.seconds < 0 && duration.nanos > 0) {
|
|
30
|
+
* duration.seconds += 1;
|
|
31
|
+
* duration.nanos -= 1000000000;
|
|
32
|
+
* } else if (duration.seconds > 0 && duration.nanos < 0) {
|
|
33
|
+
* duration.seconds -= 1;
|
|
34
|
+
* duration.nanos += 1000000000;
|
|
35
|
+
* }
|
|
36
|
+
*
|
|
37
|
+
* Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
|
38
|
+
*
|
|
39
|
+
* Timestamp start = ...;
|
|
40
|
+
* Duration duration = ...;
|
|
41
|
+
* Timestamp end = ...;
|
|
42
|
+
*
|
|
43
|
+
* end.seconds = start.seconds + duration.seconds;
|
|
44
|
+
* end.nanos = start.nanos + duration.nanos;
|
|
45
|
+
*
|
|
46
|
+
* if (end.nanos < 0) {
|
|
47
|
+
* end.seconds -= 1;
|
|
48
|
+
* end.nanos += 1000000000;
|
|
49
|
+
* } else if (end.nanos >= 1000000000) {
|
|
50
|
+
* end.seconds += 1;
|
|
51
|
+
* end.nanos -= 1000000000;
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* Example 3: Compute Duration from datetime.timedelta in Python.
|
|
55
|
+
*
|
|
56
|
+
* td = datetime.timedelta(days=3, minutes=10)
|
|
57
|
+
* duration = Duration()
|
|
58
|
+
* duration.FromTimedelta(td)
|
|
59
|
+
*
|
|
60
|
+
* # JSON Mapping
|
|
61
|
+
*
|
|
62
|
+
* In JSON format, the Duration type is encoded as a string rather than an
|
|
63
|
+
* object, where the string ends in the suffix "s" (indicating seconds) and
|
|
64
|
+
* is preceded by the number of seconds, with nanoseconds expressed as
|
|
65
|
+
* fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
|
66
|
+
* encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
|
67
|
+
* be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
|
68
|
+
* microsecond should be expressed in JSON format as "3.000001s".
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf message google.protobuf.Duration
|
|
72
|
+
*/
|
|
73
|
+
export interface Duration {
|
|
74
|
+
/**
|
|
75
|
+
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
76
|
+
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
77
|
+
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf field: int64 seconds = 1
|
|
80
|
+
*/
|
|
81
|
+
seconds: bigint;
|
|
82
|
+
/**
|
|
83
|
+
* Signed fractions of a second at nanosecond resolution of the span
|
|
84
|
+
* of time. Durations less than one second are represented with a 0
|
|
85
|
+
* `seconds` field and a positive or negative `nanos` field. For durations
|
|
86
|
+
* of one second or more, a non-zero value for the `nanos` field must be
|
|
87
|
+
* of the same sign as the `seconds` field. Must be from -999,999,999
|
|
88
|
+
* to +999,999,999 inclusive.
|
|
89
|
+
*
|
|
90
|
+
* @generated from protobuf field: int32 nanos = 2
|
|
91
|
+
*/
|
|
92
|
+
nanos: number;
|
|
93
|
+
}
|
|
94
|
+
declare class Duration$Type extends MessageType<Duration> {
|
|
95
|
+
constructor();
|
|
96
|
+
/**
|
|
97
|
+
* Encode `Duration` to JSON string like "3.000001s".
|
|
98
|
+
*/
|
|
99
|
+
internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue;
|
|
100
|
+
/**
|
|
101
|
+
* Decode `Duration` from JSON string like "3.000001s"
|
|
102
|
+
*/
|
|
103
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration;
|
|
104
|
+
create(value?: PartialMessage<Duration>): Duration;
|
|
105
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration;
|
|
106
|
+
internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @generated MessageType for protobuf message google.protobuf.Duration
|
|
110
|
+
*/
|
|
111
|
+
export declare const Duration: Duration$Type;
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { typeofJsonValue } from "@protobuf-ts/runtime";
|
|
5
|
+
import { PbLong } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
8
|
+
class Duration$Type extends MessageType {
|
|
9
|
+
constructor() {
|
|
10
|
+
super("google.protobuf.Duration", [
|
|
11
|
+
{ no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
12
|
+
{ no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Encode `Duration` to JSON string like "3.000001s".
|
|
17
|
+
*/
|
|
18
|
+
internalJsonWrite(message, options) {
|
|
19
|
+
let s = PbLong.from(message.seconds).toNumber();
|
|
20
|
+
if (s > 315576000000 || s < -315576000000)
|
|
21
|
+
throw new Error("Duration value out of range.");
|
|
22
|
+
let text = message.seconds.toString();
|
|
23
|
+
if (s === 0 && message.nanos < 0)
|
|
24
|
+
text = "-" + text;
|
|
25
|
+
if (message.nanos !== 0) {
|
|
26
|
+
let nanosStr = Math.abs(message.nanos).toString();
|
|
27
|
+
nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr;
|
|
28
|
+
if (nanosStr.substring(3) === "000000")
|
|
29
|
+
nanosStr = nanosStr.substring(0, 3);
|
|
30
|
+
else if (nanosStr.substring(6) === "000")
|
|
31
|
+
nanosStr = nanosStr.substring(0, 6);
|
|
32
|
+
text += "." + nanosStr;
|
|
33
|
+
}
|
|
34
|
+
return text + "s";
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Decode `Duration` from JSON string like "3.000001s"
|
|
38
|
+
*/
|
|
39
|
+
internalJsonRead(json, options, target) {
|
|
40
|
+
if (typeof json !== "string")
|
|
41
|
+
throw new Error("Unable to parse Duration from JSON " + typeofJsonValue(json) + ". Expected string.");
|
|
42
|
+
let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
|
|
43
|
+
if (match === null)
|
|
44
|
+
throw new Error("Unable to parse Duration from JSON string. Invalid format.");
|
|
45
|
+
if (!target)
|
|
46
|
+
target = this.create();
|
|
47
|
+
let [, sign, secs, nanos] = match;
|
|
48
|
+
let longSeconds = PbLong.from(sign + secs);
|
|
49
|
+
if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)
|
|
50
|
+
throw new Error("Unable to parse Duration from JSON string. Value out of range.");
|
|
51
|
+
target.seconds = longSeconds.toBigInt();
|
|
52
|
+
if (typeof nanos == "string") {
|
|
53
|
+
let nanosStr = sign + nanos + "0".repeat(9 - nanos.length);
|
|
54
|
+
target.nanos = parseInt(nanosStr);
|
|
55
|
+
}
|
|
56
|
+
return target;
|
|
57
|
+
}
|
|
58
|
+
create(value) {
|
|
59
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
60
|
+
message.seconds = 0n;
|
|
61
|
+
message.nanos = 0;
|
|
62
|
+
if (value !== undefined)
|
|
63
|
+
reflectionMergePartial(this, message, value);
|
|
64
|
+
return message;
|
|
65
|
+
}
|
|
66
|
+
internalBinaryRead(reader, length, options, target) {
|
|
67
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
68
|
+
while (reader.pos < end) {
|
|
69
|
+
let [fieldNo, wireType] = reader.tag();
|
|
70
|
+
switch (fieldNo) {
|
|
71
|
+
case /* int64 seconds */ 1:
|
|
72
|
+
message.seconds = reader.int64().toBigInt();
|
|
73
|
+
break;
|
|
74
|
+
case /* int32 nanos */ 2:
|
|
75
|
+
message.nanos = reader.int32();
|
|
76
|
+
break;
|
|
77
|
+
default:
|
|
78
|
+
let u = options.readUnknownField;
|
|
79
|
+
if (u === "throw")
|
|
80
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
81
|
+
let d = reader.skip(wireType);
|
|
82
|
+
if (u !== false)
|
|
83
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
}
|
|
88
|
+
internalBinaryWrite(message, writer, options) {
|
|
89
|
+
/* int64 seconds = 1; */
|
|
90
|
+
if (message.seconds !== 0n)
|
|
91
|
+
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
92
|
+
/* int32 nanos = 2; */
|
|
93
|
+
if (message.nanos !== 0)
|
|
94
|
+
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
95
|
+
let u = options.writeUnknownFields;
|
|
96
|
+
if (u !== false)
|
|
97
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
98
|
+
return writer;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated MessageType for protobuf message google.protobuf.Duration
|
|
103
|
+
*/
|
|
104
|
+
export const Duration = new Duration$Type();
|
package/iotester/index.d.ts
CHANGED
|
@@ -18760,7 +18760,8 @@ export namespace replit {
|
|
|
18760
18760
|
AUTOSCALE = 4,
|
|
18761
18761
|
SCHEDULED = 5,
|
|
18762
18762
|
EXTENSION = 6,
|
|
18763
|
-
DATABRICKS_APP = 7
|
|
18763
|
+
DATABRICKS_APP = 7,
|
|
18764
|
+
RAYFIN_APP = 8
|
|
18764
18765
|
}
|
|
18765
18766
|
|
|
18766
18767
|
/** Properties of a RewriteRule. */
|
|
@@ -27788,6 +27789,9 @@ export namespace replit {
|
|
|
27788
27789
|
|
|
27789
27790
|
/** Repl backerJobMetadata */
|
|
27790
27791
|
backerJobMetadata?: ({ [k: string]: string }|null);
|
|
27792
|
+
|
|
27793
|
+
/** Repl customSkillsBucket */
|
|
27794
|
+
customSkillsBucket?: (string|null);
|
|
27791
27795
|
}
|
|
27792
27796
|
|
|
27793
27797
|
/** Represents a Repl. */
|
|
@@ -27847,6 +27851,9 @@ export namespace replit {
|
|
|
27847
27851
|
/** Repl backerJobMetadata. */
|
|
27848
27852
|
public backerJobMetadata: { [k: string]: string };
|
|
27849
27853
|
|
|
27854
|
+
/** Repl customSkillsBucket. */
|
|
27855
|
+
public customSkillsBucket: string;
|
|
27856
|
+
|
|
27850
27857
|
/**
|
|
27851
27858
|
* Creates a new Repl instance using the specified properties.
|
|
27852
27859
|
* @param [properties] Properties to set
|
|
@@ -30797,6 +30804,12 @@ export namespace replit {
|
|
|
30797
30804
|
|
|
30798
30805
|
/** ReplToken before */
|
|
30799
30806
|
before?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
|
|
30807
|
+
|
|
30808
|
+
/** ReplToken resourceTier */
|
|
30809
|
+
resourceTier?: (string|null);
|
|
30810
|
+
|
|
30811
|
+
/** ReplToken idleTimeout */
|
|
30812
|
+
idleTimeout?: (google.protobuf.Duration|google.protobuf.IDuration|null);
|
|
30800
30813
|
}
|
|
30801
30814
|
|
|
30802
30815
|
/** Represents a ReplToken. */
|
|
@@ -30868,6 +30881,12 @@ export namespace replit {
|
|
|
30868
30881
|
/** ReplToken before. */
|
|
30869
30882
|
public before?: (google.protobuf.Timestamp|null);
|
|
30870
30883
|
|
|
30884
|
+
/** ReplToken resourceTier. */
|
|
30885
|
+
public resourceTier: string;
|
|
30886
|
+
|
|
30887
|
+
/** ReplToken idleTimeout. */
|
|
30888
|
+
public idleTimeout?: (google.protobuf.Duration|null);
|
|
30889
|
+
|
|
30871
30890
|
/** ReplToken metadata. */
|
|
30872
30891
|
public metadata?: ("repl"|"id"|"classroom");
|
|
30873
30892
|
|
|
@@ -33246,6 +33265,9 @@ export namespace replit {
|
|
|
33246
33265
|
|
|
33247
33266
|
/** Cluster noxHost */
|
|
33248
33267
|
noxHost?: (string|null);
|
|
33268
|
+
|
|
33269
|
+
/** Cluster chateauUrl */
|
|
33270
|
+
chateauUrl?: (string|null);
|
|
33249
33271
|
}
|
|
33250
33272
|
|
|
33251
33273
|
/** Represents a Cluster. */
|
|
@@ -33269,6 +33291,9 @@ export namespace replit {
|
|
|
33269
33291
|
/** Cluster noxHost. */
|
|
33270
33292
|
public noxHost: string;
|
|
33271
33293
|
|
|
33294
|
+
/** Cluster chateauUrl. */
|
|
33295
|
+
public chateauUrl: string;
|
|
33296
|
+
|
|
33272
33297
|
/**
|
|
33273
33298
|
* Creates a new Cluster instance using the specified properties.
|
|
33274
33299
|
* @param [properties] Properties to set
|
|
@@ -38833,6 +38858,109 @@ export namespace google {
|
|
|
38833
38858
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
38834
38859
|
}
|
|
38835
38860
|
|
|
38861
|
+
/** Properties of a Duration. */
|
|
38862
|
+
interface IDuration {
|
|
38863
|
+
|
|
38864
|
+
/** Duration seconds */
|
|
38865
|
+
seconds?: (number|null);
|
|
38866
|
+
|
|
38867
|
+
/** Duration nanos */
|
|
38868
|
+
nanos?: (number|null);
|
|
38869
|
+
}
|
|
38870
|
+
|
|
38871
|
+
/** Represents a Duration. */
|
|
38872
|
+
class Duration {
|
|
38873
|
+
|
|
38874
|
+
/**
|
|
38875
|
+
* Constructs a new Duration.
|
|
38876
|
+
* @param [properties] Properties to set
|
|
38877
|
+
*/
|
|
38878
|
+
private constructor(properties?: google.protobuf.IDuration);
|
|
38879
|
+
|
|
38880
|
+
/** Duration seconds. */
|
|
38881
|
+
public seconds: number;
|
|
38882
|
+
|
|
38883
|
+
/** Duration nanos. */
|
|
38884
|
+
public nanos: number;
|
|
38885
|
+
|
|
38886
|
+
/**
|
|
38887
|
+
* Creates a new Duration instance using the specified properties.
|
|
38888
|
+
* @param [properties] Properties to set
|
|
38889
|
+
* @returns Duration instance
|
|
38890
|
+
*/
|
|
38891
|
+
public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
|
|
38892
|
+
|
|
38893
|
+
/**
|
|
38894
|
+
* Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
38895
|
+
* @param message Duration message or plain object to encode
|
|
38896
|
+
* @param [writer] Writer to encode to
|
|
38897
|
+
* @returns Writer
|
|
38898
|
+
*/
|
|
38899
|
+
public static encode(message: google.protobuf.Duration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
38900
|
+
|
|
38901
|
+
/**
|
|
38902
|
+
* Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
38903
|
+
* @param message Duration message or plain object to encode
|
|
38904
|
+
* @param [writer] Writer to encode to
|
|
38905
|
+
* @returns Writer
|
|
38906
|
+
*/
|
|
38907
|
+
public static encodeDelimited(message: google.protobuf.Duration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
38908
|
+
|
|
38909
|
+
/**
|
|
38910
|
+
* Decodes a Duration message from the specified reader or buffer.
|
|
38911
|
+
* @param reader Reader or buffer to decode from
|
|
38912
|
+
* @param [length] Message length if known beforehand
|
|
38913
|
+
* @returns Duration
|
|
38914
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38915
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38916
|
+
*/
|
|
38917
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
|
|
38918
|
+
|
|
38919
|
+
/**
|
|
38920
|
+
* Decodes a Duration message from the specified reader or buffer, length delimited.
|
|
38921
|
+
* @param reader Reader or buffer to decode from
|
|
38922
|
+
* @returns Duration
|
|
38923
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38924
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38925
|
+
*/
|
|
38926
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
|
|
38927
|
+
|
|
38928
|
+
/**
|
|
38929
|
+
* Verifies a Duration message.
|
|
38930
|
+
* @param message Plain object to verify
|
|
38931
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
38932
|
+
*/
|
|
38933
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
38934
|
+
|
|
38935
|
+
/**
|
|
38936
|
+
* Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
|
38937
|
+
* @param object Plain object
|
|
38938
|
+
* @returns Duration
|
|
38939
|
+
*/
|
|
38940
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
|
|
38941
|
+
|
|
38942
|
+
/**
|
|
38943
|
+
* Creates a plain object from a Duration message. Also converts values to other types if specified.
|
|
38944
|
+
* @param message Duration
|
|
38945
|
+
* @param [options] Conversion options
|
|
38946
|
+
* @returns Plain object
|
|
38947
|
+
*/
|
|
38948
|
+
public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
38949
|
+
|
|
38950
|
+
/**
|
|
38951
|
+
* Converts this Duration to JSON.
|
|
38952
|
+
* @returns JSON object
|
|
38953
|
+
*/
|
|
38954
|
+
public toJSON(): { [k: string]: any };
|
|
38955
|
+
|
|
38956
|
+
/**
|
|
38957
|
+
* Gets the default type url for Duration
|
|
38958
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
38959
|
+
* @returns The default type url
|
|
38960
|
+
*/
|
|
38961
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
38962
|
+
}
|
|
38963
|
+
|
|
38836
38964
|
/** Properties of a FieldMask. */
|
|
38837
38965
|
interface IFieldMask {
|
|
38838
38966
|
|