@replit/protocol 0.3.33 → 0.3.34

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.
@@ -22,6 +22,7 @@ declare var npm$namespace$replit$goval$api: {|
22
22
  TokenVersion: typeof replit$goval$api$TokenVersion,
23
23
  FlagClaim: typeof replit$goval$api$FlagClaim,
24
24
  ICommand: Class<replit$goval$api$ICommand>,
25
+ IRiverMessage: Class<replit$goval$api$IRiverMessage>,
25
26
  INixPackageAddRequest: Class<replit$goval$api$INixPackageAddRequest>,
26
27
  INixPackageAddResponse: Class<replit$goval$api$INixPackageAddResponse>,
27
28
  INixPackageRemoveRequest: Class<replit$goval$api$INixPackageRemoveRequest>,
@@ -257,6 +258,7 @@ declare var npm$namespace$replit$goval$api: {|
257
258
  IPowerUp: Class<replit$goval$api$IPowerUp>,
258
259
  IUserPowerUps: Class<replit$goval$api$IUserPowerUps>,
259
260
  Command: typeof replit$goval$api$Command,
261
+ RiverMessage: typeof replit$goval$api$RiverMessage,
260
262
  NixPackageAddRequest: typeof replit$goval$api$NixPackageAddRequest,
261
263
  NixPackageAddResponse: typeof replit$goval$api$NixPackageAddResponse,
262
264
  NixPackageRemoveRequest: typeof replit$goval$api$NixPackageRemoveRequest,
@@ -1768,6 +1770,14 @@ declare type replit$goval$api$ICommand = {|
1768
1770
  | replit$goval$api$INixModulesGetRegistryResponse
1769
1771
  | null,
1770
1772
 
1773
+ /**
1774
+ * Command pid2Message
1775
+ */
1776
+ pid2Message?:
1777
+ | replit$goval$api$RiverMessage
1778
+ | replit$goval$api$IRiverMessage
1779
+ | null,
1780
+
1771
1781
  /**
1772
1782
  * Command ref
1773
1783
  */
@@ -2726,6 +2736,11 @@ declare class replit$goval$api$Command {
2726
2736
  */
2727
2737
  nixModulesGetRegistryResponse?: replit$goval$api$NixModulesGetRegistryResponse | null;
2728
2738
 
2739
+ /**
2740
+ * Command pid2Message.
2741
+ */
2742
+ pid2Message?: replit$goval$api$RiverMessage | null;
2743
+
2729
2744
  /**
2730
2745
  * Command ref.
2731
2746
  */
@@ -2926,7 +2941,8 @@ declare class replit$goval$api$Command {
2926
2941
  | "toolchainChanged"
2927
2942
  | "replspaceApiOpenMultipleFiles"
2928
2943
  | "nixModulesGetRegistryRequest"
2929
- | "nixModulesGetRegistryResponse";
2944
+ | "nixModulesGetRegistryResponse"
2945
+ | "pid2Message";
2930
2946
 
2931
2947
  /**
2932
2948
  * Creates a new Command instance using the specified properties.
@@ -3030,6 +3046,203 @@ declare class replit$goval$api$Command {
3030
3046
  static getTypeUrl(typeUrlPrefix?: string): string;
3031
3047
  }
3032
3048
 
3049
+ /**
3050
+ * Properties of a RiverMessage.
3051
+ */
3052
+ declare type replit$goval$api$IRiverMessage = {|
3053
+ /**
3054
+ * RiverMessage id
3055
+ */
3056
+ id?: string | null,
3057
+
3058
+ /**
3059
+ * RiverMessage replyTo
3060
+ */
3061
+ replyTo?: string | null,
3062
+
3063
+ /**
3064
+ * RiverMessage from
3065
+ */
3066
+ from?: string | null,
3067
+
3068
+ /**
3069
+ * RiverMessage to
3070
+ */
3071
+ to?: string | null,
3072
+
3073
+ /**
3074
+ * RiverMessage serviceName
3075
+ */
3076
+ serviceName?: string | null,
3077
+
3078
+ /**
3079
+ * RiverMessage procedureName
3080
+ */
3081
+ procedureName?: string | null,
3082
+
3083
+ /**
3084
+ * RiverMessage ack
3085
+ */
3086
+ ack?: string | null,
3087
+
3088
+ /**
3089
+ * RiverMessage payload
3090
+ */
3091
+ payload?: Uint8Array | null,
3092
+ |};
3093
+
3094
+ /**
3095
+ * Represents a RiverMessage.
3096
+ */
3097
+ declare class replit$goval$api$RiverMessage {
3098
+ /**
3099
+ * Constructs a new RiverMessage.
3100
+ * @param [properties] Properties to set
3101
+ */
3102
+ constructor(properties?: replit$goval$api$IRiverMessage): this;
3103
+
3104
+ /**
3105
+ * RiverMessage id.
3106
+ */
3107
+ id: string;
3108
+
3109
+ /**
3110
+ * RiverMessage replyTo.
3111
+ */
3112
+ replyTo: string;
3113
+
3114
+ /**
3115
+ * RiverMessage from.
3116
+ */
3117
+ from: string;
3118
+
3119
+ /**
3120
+ * RiverMessage to.
3121
+ */
3122
+ to: string;
3123
+
3124
+ /**
3125
+ * RiverMessage serviceName.
3126
+ */
3127
+ serviceName: string;
3128
+
3129
+ /**
3130
+ * RiverMessage procedureName.
3131
+ */
3132
+ procedureName: string;
3133
+
3134
+ /**
3135
+ * RiverMessage ack.
3136
+ */
3137
+ ack: string;
3138
+
3139
+ /**
3140
+ * RiverMessage payload.
3141
+ */
3142
+ payload: Uint8Array;
3143
+
3144
+ /**
3145
+ * Creates a new RiverMessage instance using the specified properties.
3146
+ * @param [properties] Properties to set
3147
+ * @returns RiverMessage instance
3148
+ */
3149
+ static create(
3150
+ properties?: replit$goval$api$IRiverMessage
3151
+ ): replit$goval$api$RiverMessage;
3152
+
3153
+ /**
3154
+ * [object Object],[object Object],[object Object]
3155
+ * @param message RiverMessage message or plain object to encode
3156
+ * @param [writer] Writer to encode to
3157
+ * @returns Writer
3158
+ */
3159
+ static encode(
3160
+ message: replit$goval$api$RiverMessage,
3161
+ writer?: $protobuf.Writer
3162
+ ): $protobuf.Writer;
3163
+
3164
+ /**
3165
+ * [object Object],[object Object],[object Object]
3166
+ * @param message RiverMessage message or plain object to encode
3167
+ * @param [writer] Writer to encode to
3168
+ * @returns Writer
3169
+ */
3170
+ static encodeDelimited(
3171
+ message: replit$goval$api$RiverMessage,
3172
+ writer?: $protobuf.Writer
3173
+ ): $protobuf.Writer;
3174
+
3175
+ /**
3176
+ * Decodes a RiverMessage message from the specified reader or buffer.
3177
+ * @param reader Reader or buffer to decode from
3178
+ * @param [length] Message length if known beforehand
3179
+ * @returns RiverMessage
3180
+ * @throws {Error} If the payload is not a reader or valid buffer
3181
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3182
+ */
3183
+ static decode(
3184
+ reader: $protobuf.Reader | Uint8Array,
3185
+ length?: number
3186
+ ): replit$goval$api$RiverMessage;
3187
+
3188
+ /**
3189
+ * Decodes a RiverMessage message from the specified reader or buffer, length delimited.
3190
+ * @param reader Reader or buffer to decode from
3191
+ * @returns RiverMessage
3192
+ * @throws {Error} If the payload is not a reader or valid buffer
3193
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3194
+ */
3195
+ static decodeDelimited(
3196
+ reader: $protobuf.Reader | Uint8Array
3197
+ ): replit$goval$api$RiverMessage;
3198
+
3199
+ /**
3200
+ * Verifies a RiverMessage message.
3201
+ * @param message Plain object to verify
3202
+ * @returns `null` if valid, otherwise the reason why it is not
3203
+ */
3204
+ static verify(message: {|
3205
+ [k: string]: any,
3206
+ |}): string | null;
3207
+
3208
+ /**
3209
+ * Creates a RiverMessage message from a plain object. Also converts values to their respective internal types.
3210
+ * @param object Plain object
3211
+ * @returns RiverMessage
3212
+ */
3213
+ static fromObject(object: {|
3214
+ [k: string]: any,
3215
+ |}): replit$goval$api$RiverMessage;
3216
+
3217
+ /**
3218
+ * Creates a plain object from a RiverMessage message. Also converts values to other types if specified.
3219
+ * @param message RiverMessage
3220
+ * @param [options] Conversion options
3221
+ * @returns Plain object
3222
+ */
3223
+ static toObject(
3224
+ message: replit$goval$api$RiverMessage,
3225
+ options?: $protobuf.IConversionOptions
3226
+ ): {|
3227
+ [k: string]: any,
3228
+ |};
3229
+
3230
+ /**
3231
+ * Converts this RiverMessage to JSON.
3232
+ * @returns JSON object
3233
+ */
3234
+ toJSON(): {|
3235
+ [k: string]: any,
3236
+ |};
3237
+
3238
+ /**
3239
+ * Gets the default type url for RiverMessage
3240
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3241
+ * @returns The default type url
3242
+ */
3243
+ static getTypeUrl(typeUrlPrefix?: string): string;
3244
+ }
3245
+
3033
3246
  /**
3034
3247
  * Properties of a NixPackageAddRequest.
3035
3248
  */
@@ -34024,6 +34237,14 @@ declare type replit$goval$api$IReplToken = {|
34024
34237
  | replit$goval$api$repl$BuildInfo
34025
34238
  | replit$goval$api$repl$IBuildInfo
34026
34239
  | null,
34240
+
34241
+ /**
34242
+ * ReplToken pid2Info
34243
+ */
34244
+ pid2Info?:
34245
+ | replit$goval$api$repl$Pid2Binary
34246
+ | replit$goval$api$repl$IPid2Binary
34247
+ | null,
34027
34248
  |};
34028
34249
 
34029
34250
  /**
@@ -34116,6 +34337,11 @@ declare class replit$goval$api$ReplToken {
34116
34337
  */
34117
34338
  buildInfo?: replit$goval$api$repl$BuildInfo | null;
34118
34339
 
34340
+ /**
34341
+ * ReplToken pid2Info.
34342
+ */
34343
+ pid2Info?: replit$goval$api$repl$Pid2Binary | null;
34344
+
34119
34345
  /**
34120
34346
  * ReplToken metadata.
34121
34347
  */
@@ -39188,6 +39414,7 @@ declare var npm$namespace$replit$goval$api$repl: {|
39188
39414
  IPermissions: Class<replit$goval$api$repl$IPermissions>,
39189
39415
  IMetadata: Class<replit$goval$api$repl$IMetadata>,
39190
39416
  IBuildInfo: Class<replit$goval$api$repl$IBuildInfo>,
39417
+ IPid2Binary: Class<replit$goval$api$repl$IPid2Binary>,
39191
39418
  Buckets: typeof replit$goval$api$repl$Buckets,
39192
39419
  Repl: typeof replit$goval$api$repl$Repl,
39193
39420
  UserId: typeof replit$goval$api$repl$UserId,
@@ -39195,6 +39422,7 @@ declare var npm$namespace$replit$goval$api$repl: {|
39195
39422
  Permissions: typeof replit$goval$api$repl$Permissions,
39196
39423
  Metadata: typeof replit$goval$api$repl$Metadata,
39197
39424
  BuildInfo: typeof replit$goval$api$repl$BuildInfo,
39425
+ Pid2Binary: typeof replit$goval$api$repl$Pid2Binary,
39198
39426
  |};
39199
39427
 
39200
39428
  /**
@@ -40466,6 +40694,133 @@ declare class replit$goval$api$repl$BuildInfo {
40466
40694
  static getTypeUrl(typeUrlPrefix?: string): string;
40467
40695
  }
40468
40696
 
40697
+ /**
40698
+ * Properties of a Pid2Binary.
40699
+ */
40700
+ declare type replit$goval$api$repl$IPid2Binary = {|
40701
+ /**
40702
+ * Pid2Binary version
40703
+ */
40704
+ version?: string | null,
40705
+ |};
40706
+
40707
+ /**
40708
+ * Represents a Pid2Binary.
40709
+ */
40710
+ declare class replit$goval$api$repl$Pid2Binary {
40711
+ /**
40712
+ * Constructs a new Pid2Binary.
40713
+ * @param [properties] Properties to set
40714
+ */
40715
+ constructor(properties?: replit$goval$api$repl$IPid2Binary): this;
40716
+
40717
+ /**
40718
+ * Pid2Binary version.
40719
+ */
40720
+ version: string;
40721
+
40722
+ /**
40723
+ * Creates a new Pid2Binary instance using the specified properties.
40724
+ * @param [properties] Properties to set
40725
+ * @returns Pid2Binary instance
40726
+ */
40727
+ static create(
40728
+ properties?: replit$goval$api$repl$IPid2Binary
40729
+ ): replit$goval$api$repl$Pid2Binary;
40730
+
40731
+ /**
40732
+ * [object Object],[object Object],[object Object]
40733
+ * @param message Pid2Binary message or plain object to encode
40734
+ * @param [writer] Writer to encode to
40735
+ * @returns Writer
40736
+ */
40737
+ static encode(
40738
+ message: replit$goval$api$repl$Pid2Binary,
40739
+ writer?: $protobuf.Writer
40740
+ ): $protobuf.Writer;
40741
+
40742
+ /**
40743
+ * [object Object],[object Object],[object Object]
40744
+ * @param message Pid2Binary message or plain object to encode
40745
+ * @param [writer] Writer to encode to
40746
+ * @returns Writer
40747
+ */
40748
+ static encodeDelimited(
40749
+ message: replit$goval$api$repl$Pid2Binary,
40750
+ writer?: $protobuf.Writer
40751
+ ): $protobuf.Writer;
40752
+
40753
+ /**
40754
+ * Decodes a Pid2Binary message from the specified reader or buffer.
40755
+ * @param reader Reader or buffer to decode from
40756
+ * @param [length] Message length if known beforehand
40757
+ * @returns Pid2Binary
40758
+ * @throws {Error} If the payload is not a reader or valid buffer
40759
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40760
+ */
40761
+ static decode(
40762
+ reader: $protobuf.Reader | Uint8Array,
40763
+ length?: number
40764
+ ): replit$goval$api$repl$Pid2Binary;
40765
+
40766
+ /**
40767
+ * Decodes a Pid2Binary message from the specified reader or buffer, length delimited.
40768
+ * @param reader Reader or buffer to decode from
40769
+ * @returns Pid2Binary
40770
+ * @throws {Error} If the payload is not a reader or valid buffer
40771
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40772
+ */
40773
+ static decodeDelimited(
40774
+ reader: $protobuf.Reader | Uint8Array
40775
+ ): replit$goval$api$repl$Pid2Binary;
40776
+
40777
+ /**
40778
+ * Verifies a Pid2Binary message.
40779
+ * @param message Plain object to verify
40780
+ * @returns `null` if valid, otherwise the reason why it is not
40781
+ */
40782
+ static verify(message: {|
40783
+ [k: string]: any,
40784
+ |}): string | null;
40785
+
40786
+ /**
40787
+ * Creates a Pid2Binary message from a plain object. Also converts values to their respective internal types.
40788
+ * @param object Plain object
40789
+ * @returns Pid2Binary
40790
+ */
40791
+ static fromObject(object: {|
40792
+ [k: string]: any,
40793
+ |}): replit$goval$api$repl$Pid2Binary;
40794
+
40795
+ /**
40796
+ * Creates a plain object from a Pid2Binary message. Also converts values to other types if specified.
40797
+ * @param message Pid2Binary
40798
+ * @param [options] Conversion options
40799
+ * @returns Plain object
40800
+ */
40801
+ static toObject(
40802
+ message: replit$goval$api$repl$Pid2Binary,
40803
+ options?: $protobuf.IConversionOptions
40804
+ ): {|
40805
+ [k: string]: any,
40806
+ |};
40807
+
40808
+ /**
40809
+ * Converts this Pid2Binary to JSON.
40810
+ * @returns JSON object
40811
+ */
40812
+ toJSON(): {|
40813
+ [k: string]: any,
40814
+ |};
40815
+
40816
+ /**
40817
+ * Gets the default type url for Pid2Binary
40818
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
40819
+ * @returns The default type url
40820
+ */
40821
+ static getTypeUrl(typeUrlPrefix?: string): string;
40822
+ }
40823
+
40469
40824
  /**
40470
40825
  * Properties of a PrivateReplsPowerup.
40471
40826
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",