@leaflow/sdk 0.192.0 → 0.193.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.
@@ -1265,8 +1265,11 @@ export interface PeerConnection {
1265
1265
  /** The session's SDP answer (RFC 8866); it holds ICE credentials, so never log it */
1266
1266
  answer: string;
1267
1267
  /**
1268
- * The session's ICE candidates gathered until it reported the end of its candidates, or
1269
- * until 10 seconds after its answer
1268
+ * The session's ICE candidates that arrived until it reported the end of its candidates, or
1269
+ * 500 milliseconds after one candidate of each type its ICE servers yield had arrived
1270
+ * (server reflexive when the RTC configuration has STUN servers and the policy is not
1271
+ * `relay`, relayed when it has TURN servers), and at most until 10 seconds after its
1272
+ * answer. Candidates the session gathers later are not passed on.
1270
1273
  */
1271
1274
  candidates: IceCandidate[];
1272
1275
  /** The signed `PeerAuthorization` of the PeerConnection, the same one the session holds */
@@ -248,7 +248,7 @@ export const PeerConnection = zod
248
248
  .describe("The session's SDP answer (RFC 8866); it holds ICE credentials, so never log it"),
249
249
  candidates: zod
250
250
  .array(IceCandidate)
251
- .describe("The session's ICE candidates gathered until it reported the end of its candidates, or\nuntil 10 seconds after its answer"),
251
+ .describe("The session's ICE candidates that arrived until it reported the end of its candidates, or\n500 milliseconds after one candidate of each type its ICE servers yield had arrived\n(server reflexive when the RTC configuration has STUN servers and the policy is not\n`relay`, relayed when it has TURN servers), and at most until 10 seconds after its\nanswer. Candidates the session gathers later are not passed on."),
252
252
  authorization: SignedMessage.describe("The signed `PeerAuthorization` of the PeerConnection, the same one the session holds"),
253
253
  })
254
254
  .describe("One PeerConnection of a participant, as the session answered it. Set the answer as the\nremote description, add the candidates, and verify the authorization before sending\napplication data; the SHA-256 of its `message` goes into `Hello.authorization_sha256`.");
@@ -41,6 +41,15 @@ export type ClientMessage = Message<"leaflow.fleet.terminal.v1.ClientMessage"> &
41
41
  */
42
42
  value: TerminalSize;
43
43
  case: "resize";
44
+ } | {
45
+ /**
46
+ * Answers of the participant's terminal to terminal queries, written to
47
+ * the terminal only when the participant is the answerer.
48
+ *
49
+ * @generated from field: leaflow.fleet.terminal.v1.TerminalAnswer answer = 4;
50
+ */
51
+ value: TerminalAnswer;
52
+ case: "answer";
44
53
  } | {
45
54
  case: undefined;
46
55
  value?: undefined;
@@ -127,6 +136,13 @@ export type TerminalAttach = Message<"leaflow.fleet.terminal.v1.TerminalAttach">
127
136
  * @generated from field: uint64 offset = 1;
128
137
  */
129
138
  offset: bigint;
139
+ /**
140
+ * The participant's terminal answers terminal queries in the output, and
141
+ * the participant sends those answers as TerminalAnswer.
142
+ *
143
+ * @generated from field: bool answers_queries = 2;
144
+ */
145
+ answersQueries: boolean;
130
146
  };
131
147
  /**
132
148
  * Describes the message leaflow.fleet.terminal.v1.TerminalAttach.
@@ -160,6 +176,14 @@ export type TerminalAttached = Message<"leaflow.fleet.terminal.v1.TerminalAttach
160
176
  * @generated from field: leaflow.fleet.terminal.v1.TerminalSize size = 3;
161
177
  */
162
178
  size?: TerminalSize | undefined;
179
+ /**
180
+ * The end of the output when the participant attached: the output from
181
+ * offset up to here is replayed, what follows is new. Equal to offset when
182
+ * nothing is replayed.
183
+ *
184
+ * @generated from field: uint64 replay_end = 4;
185
+ */
186
+ replayEnd: bigint;
163
187
  };
164
188
  /**
165
189
  * Describes the message leaflow.fleet.terminal.v1.TerminalAttached.
@@ -184,6 +208,24 @@ export type TerminalInput = Message<"leaflow.fleet.terminal.v1.TerminalInput"> &
184
208
  * Use `create(TerminalInputSchema)` to create a new message.
185
209
  */
186
210
  export declare const TerminalInputSchema: GenMessage<TerminalInput>;
211
+ /**
212
+ * Answers of the participant's terminal to terminal queries in the output.
213
+ *
214
+ * @generated from message leaflow.fleet.terminal.v1.TerminalAnswer
215
+ */
216
+ export type TerminalAnswer = Message<"leaflow.fleet.terminal.v1.TerminalAnswer"> & {
217
+ /**
218
+ * The bytes, at most 64 KiB.
219
+ *
220
+ * @generated from field: bytes data = 1;
221
+ */
222
+ data: Uint8Array;
223
+ };
224
+ /**
225
+ * Describes the message leaflow.fleet.terminal.v1.TerminalAnswer.
226
+ * Use `create(TerminalAnswerSchema)` to create a new message.
227
+ */
228
+ export declare const TerminalAnswerSchema: GenMessage<TerminalAnswer>;
187
229
  /**
188
230
  * Output of the terminal.
189
231
  *
@@ -6,7 +6,7 @@ import { file_google_rpc_status } from "../../../../google/rpc/status_pb.js";
6
6
  /**
7
7
  * Describes the file leaflow/fleet/terminal/v1/terminal.proto.
8
8
  */
9
- export const file_leaflow_fleet_terminal_v1_terminal = /*@__PURE__*/ fileDesc("CihsZWFmbG93L2ZsZWV0L3Rlcm1pbmFsL3YxL3Rlcm1pbmFsLnByb3RvEhlsZWFmbG93LmZsZWV0LnRlcm1pbmFsLnYxIs0BCg1DbGllbnRNZXNzYWdlEjsKBmF0dGFjaBgBIAEoCzIpLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxBdHRhY2hIABI5CgVpbnB1dBgCIAEoCzIoLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxJbnB1dEgAEjkKBnJlc2l6ZRgDIAEoCzInLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxTaXplSABCCQoHbWVzc2FnZSKxAgoNU2VydmVyTWVzc2FnZRI/CghhdHRhY2hlZBgBIAEoCzIrLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxBdHRhY2hlZEgAEjsKBm91dHB1dBgCIAEoCzIpLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxPdXRwdXRIABI5CgZyZXNpemUYAyABKAsyJy5sZWFmbG93LmZsZWV0LnRlcm1pbmFsLnYxLlRlcm1pbmFsU2l6ZUgAEjcKBGV4aXQYBCABKAsyJy5sZWFmbG93LmZsZWV0LnRlcm1pbmFsLnYxLlRlcm1pbmFsRXhpdEgAEiMKBWVycm9yGAUgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXNIAEIJCgdtZXNzYWdlIiAKDlRlcm1pbmFsQXR0YWNoEg4KBm9mZnNldBgBIAEoBCJoChBUZXJtaW5hbEF0dGFjaGVkEg4KBm9mZnNldBgBIAEoBBINCgVyZXNldBgCIAEoCBI1CgRzaXplGAMgASgLMicubGVhZmxvdy5mbGVldC50ZXJtaW5hbC52MS5UZXJtaW5hbFNpemUiHQoNVGVybWluYWxJbnB1dBIMCgRkYXRhGAEgASgMIh4KDlRlcm1pbmFsT3V0cHV0EgwKBGRhdGEYASABKAwiUgoMVGVybWluYWxTaXplEg8KB2NvbHVtbnMYASABKA0SDAoEcm93cxgCIAEoDRIQCgh3aWR0aF9weBgDIAEoDRIRCgloZWlnaHRfcHgYBCABKA0iWQoMVGVybWluYWxFeGl0EhMKCWV4aXRfY29kZRgBIAEoDUgAEhUKC3NpZ25hbF9uYW1lGAIgASgJSAASEwoLY29yZV9kdW1wZWQYAyABKAhCCAoGc3RhdHVzIhAKDlRlcm1pbmFsUG9saWN5QkBaPmdpdGh1Yi5jb20vbGVhZmxvd2FwaXMvbGVhZmxvdy1nby9mbGVldC90ZXJtaW5hbC92MTt0ZXJtaW5hbHYxYgZwcm90bzM", [file_google_rpc_status]);
9
+ export const file_leaflow_fleet_terminal_v1_terminal = /*@__PURE__*/ fileDesc("CihsZWFmbG93L2ZsZWV0L3Rlcm1pbmFsL3YxL3Rlcm1pbmFsLnByb3RvEhlsZWFmbG93LmZsZWV0LnRlcm1pbmFsLnYxIooCCg1DbGllbnRNZXNzYWdlEjsKBmF0dGFjaBgBIAEoCzIpLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxBdHRhY2hIABI5CgVpbnB1dBgCIAEoCzIoLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxJbnB1dEgAEjkKBnJlc2l6ZRgDIAEoCzInLmxlYWZsb3cuZmxlZXQudGVybWluYWwudjEuVGVybWluYWxTaXplSAASOwoGYW5zd2VyGAQgASgLMikubGVhZmxvdy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DlRlcm1pbmFsUG9saWN5QkBaPmdpdGh1Yi5jb20vbGVhZmxvd2FwaXMvbGVhZmxvdy1nby9mbGVldC90ZXJtaW5hbC92MTt0ZXJtaW5hbHYxYgZwcm90bzM", [file_google_rpc_status]);
10
10
  /**
11
11
  * Describes the message leaflow.fleet.terminal.v1.ClientMessage.
12
12
  * Use `create(ClientMessageSchema)` to create a new message.
@@ -32,23 +32,28 @@ export const TerminalAttachedSchema = /*@__PURE__*/ messageDesc(file_leaflow_fle
32
32
  * Use `create(TerminalInputSchema)` to create a new message.
33
33
  */
34
34
  export const TerminalInputSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 4);
35
+ /**
36
+ * Describes the message leaflow.fleet.terminal.v1.TerminalAnswer.
37
+ * Use `create(TerminalAnswerSchema)` to create a new message.
38
+ */
39
+ export const TerminalAnswerSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 5);
35
40
  /**
36
41
  * Describes the message leaflow.fleet.terminal.v1.TerminalOutput.
37
42
  * Use `create(TerminalOutputSchema)` to create a new message.
38
43
  */
39
- export const TerminalOutputSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 5);
44
+ export const TerminalOutputSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 6);
40
45
  /**
41
46
  * Describes the message leaflow.fleet.terminal.v1.TerminalSize.
42
47
  * Use `create(TerminalSizeSchema)` to create a new message.
43
48
  */
44
- export const TerminalSizeSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 6);
49
+ export const TerminalSizeSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 7);
45
50
  /**
46
51
  * Describes the message leaflow.fleet.terminal.v1.TerminalExit.
47
52
  * Use `create(TerminalExitSchema)` to create a new message.
48
53
  */
49
- export const TerminalExitSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 7);
54
+ export const TerminalExitSchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 8);
50
55
  /**
51
56
  * Describes the message leaflow.fleet.terminal.v1.TerminalPolicy.
52
57
  * Use `create(TerminalPolicySchema)` to create a new message.
53
58
  */
54
- export const TerminalPolicySchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 8);
59
+ export const TerminalPolicySchema = /*@__PURE__*/ messageDesc(file_leaflow_fleet_terminal_v1_terminal, 9);
@@ -583,9 +583,12 @@ export declare const CloseSchema: GenMessage<Close>;
583
583
  * a PeerConnection through the Fleet API, and receives the session's answer,
584
584
  * candidates and the PeerAuthorization in the answer of its request. The
585
585
  * service passes on the session's candidates that arrive until the session
586
- * sends end_of_candidates, and at most 10 seconds after the answer; the
587
- * session therefore sends end_of_candidates as soon as it gathered, and the
588
- * participant's request waits no longer than that.
586
+ * sends end_of_candidates, or until 500 milliseconds after one candidate of
587
+ * each type the session's ICE servers yield has arrived (srflx when the
588
+ * configuration has STUN servers and the policy is not relay, relay when it
589
+ * has TURN servers), and at most 10 seconds after the answer; later candidates
590
+ * are dropped. The session therefore sends each candidate as soon as it has
591
+ * it and end_of_candidates as soon as it gathered.
589
592
  *
590
593
  * The offer is the first signal of a PeerConnection: the service sends it
591
594
  * before any other signal of that PeerConnection. The participant's later
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.192.0",
3
+ "version": "0.193.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {