@replit/protocol 0.3.33 → 0.3.35

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
  */
@@ -26059,6 +26272,16 @@ declare type replit$goval$api$IDeploymentConfig = {|
26059
26272
  | replit$goval$api$DeploymentConfig$IRewriteRule
26060
26273
  )[]
26061
26274
  | null,
26275
+
26276
+ /**
26277
+ * DeploymentConfig responseHeaders
26278
+ */
26279
+ responseHeaders?:
26280
+ | (
26281
+ | replit$goval$api$DeploymentConfig$Header
26282
+ | replit$goval$api$DeploymentConfig$IHeader
26283
+ )[]
26284
+ | null,
26062
26285
  |};
26063
26286
 
26064
26287
  /**
@@ -26101,6 +26324,11 @@ declare class replit$goval$api$DeploymentConfig {
26101
26324
  */
26102
26325
  rewrites: replit$goval$api$DeploymentConfig$RewriteRule[];
26103
26326
 
26327
+ /**
26328
+ * DeploymentConfig responseHeaders.
26329
+ */
26330
+ responseHeaders: replit$goval$api$DeploymentConfig$Header[];
26331
+
26104
26332
  /**
26105
26333
  * Creates a new DeploymentConfig instance using the specified properties.
26106
26334
  * @param [properties] Properties to set
@@ -26203,7 +26431,9 @@ declare class replit$goval$api$DeploymentConfig {
26203
26431
  static getTypeUrl(typeUrlPrefix?: string): string;
26204
26432
  static Target: typeof replit$goval$api$DeploymentConfig$Target;
26205
26433
  static IRewriteRule: Class<replit$goval$api$DeploymentConfig$IRewriteRule>;
26434
+ static IHeader: Class<replit$goval$api$DeploymentConfig$IHeader>;
26206
26435
  static RewriteRule: typeof replit$goval$api$DeploymentConfig$RewriteRule;
26436
+ static Header: typeof replit$goval$api$DeploymentConfig$Header;
26207
26437
  }
26208
26438
 
26209
26439
  /**
@@ -26355,6 +26585,153 @@ declare class replit$goval$api$DeploymentConfig$RewriteRule {
26355
26585
  static getTypeUrl(typeUrlPrefix?: string): string;
26356
26586
  }
26357
26587
 
26588
+ /**
26589
+ * Properties of a Header.
26590
+ */
26591
+ declare type replit$goval$api$DeploymentConfig$IHeader = {|
26592
+ /**
26593
+ * Header path
26594
+ */
26595
+ path?: string | null,
26596
+
26597
+ /**
26598
+ * Header name
26599
+ */
26600
+ name?: string | null,
26601
+
26602
+ /**
26603
+ * Header value
26604
+ */
26605
+ value?: string | null,
26606
+ |};
26607
+
26608
+ /**
26609
+ * Represents a Header.
26610
+ */
26611
+ declare class replit$goval$api$DeploymentConfig$Header {
26612
+ /**
26613
+ * Constructs a new Header.
26614
+ * @param [properties] Properties to set
26615
+ */
26616
+ constructor(properties?: replit$goval$api$DeploymentConfig$IHeader): this;
26617
+
26618
+ /**
26619
+ * Header path.
26620
+ */
26621
+ path: string;
26622
+
26623
+ /**
26624
+ * Header name.
26625
+ */
26626
+ name: string;
26627
+
26628
+ /**
26629
+ * Header value.
26630
+ */
26631
+ value: string;
26632
+
26633
+ /**
26634
+ * Creates a new Header instance using the specified properties.
26635
+ * @param [properties] Properties to set
26636
+ * @returns Header instance
26637
+ */
26638
+ static create(
26639
+ properties?: replit$goval$api$DeploymentConfig$IHeader
26640
+ ): replit$goval$api$DeploymentConfig$Header;
26641
+
26642
+ /**
26643
+ * [object Object],[object Object],[object Object]
26644
+ * @param message Header message or plain object to encode
26645
+ * @param [writer] Writer to encode to
26646
+ * @returns Writer
26647
+ */
26648
+ static encode(
26649
+ message: replit$goval$api$DeploymentConfig$Header,
26650
+ writer?: $protobuf.Writer
26651
+ ): $protobuf.Writer;
26652
+
26653
+ /**
26654
+ * [object Object],[object Object],[object Object]
26655
+ * @param message Header message or plain object to encode
26656
+ * @param [writer] Writer to encode to
26657
+ * @returns Writer
26658
+ */
26659
+ static encodeDelimited(
26660
+ message: replit$goval$api$DeploymentConfig$Header,
26661
+ writer?: $protobuf.Writer
26662
+ ): $protobuf.Writer;
26663
+
26664
+ /**
26665
+ * Decodes a Header message from the specified reader or buffer.
26666
+ * @param reader Reader or buffer to decode from
26667
+ * @param [length] Message length if known beforehand
26668
+ * @returns Header
26669
+ * @throws {Error} If the payload is not a reader or valid buffer
26670
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26671
+ */
26672
+ static decode(
26673
+ reader: $protobuf.Reader | Uint8Array,
26674
+ length?: number
26675
+ ): replit$goval$api$DeploymentConfig$Header;
26676
+
26677
+ /**
26678
+ * Decodes a Header message from the specified reader or buffer, length delimited.
26679
+ * @param reader Reader or buffer to decode from
26680
+ * @returns Header
26681
+ * @throws {Error} If the payload is not a reader or valid buffer
26682
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26683
+ */
26684
+ static decodeDelimited(
26685
+ reader: $protobuf.Reader | Uint8Array
26686
+ ): replit$goval$api$DeploymentConfig$Header;
26687
+
26688
+ /**
26689
+ * Verifies a Header message.
26690
+ * @param message Plain object to verify
26691
+ * @returns `null` if valid, otherwise the reason why it is not
26692
+ */
26693
+ static verify(message: {|
26694
+ [k: string]: any,
26695
+ |}): string | null;
26696
+
26697
+ /**
26698
+ * Creates a Header message from a plain object. Also converts values to their respective internal types.
26699
+ * @param object Plain object
26700
+ * @returns Header
26701
+ */
26702
+ static fromObject(object: {|
26703
+ [k: string]: any,
26704
+ |}): replit$goval$api$DeploymentConfig$Header;
26705
+
26706
+ /**
26707
+ * Creates a plain object from a Header message. Also converts values to other types if specified.
26708
+ * @param message Header
26709
+ * @param [options] Conversion options
26710
+ * @returns Plain object
26711
+ */
26712
+ static toObject(
26713
+ message: replit$goval$api$DeploymentConfig$Header,
26714
+ options?: $protobuf.IConversionOptions
26715
+ ): {|
26716
+ [k: string]: any,
26717
+ |};
26718
+
26719
+ /**
26720
+ * Converts this Header to JSON.
26721
+ * @returns JSON object
26722
+ */
26723
+ toJSON(): {|
26724
+ [k: string]: any,
26725
+ |};
26726
+
26727
+ /**
26728
+ * Gets the default type url for Header
26729
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26730
+ * @returns The default type url
26731
+ */
26732
+ static getTypeUrl(typeUrlPrefix?: string): string;
26733
+ }
26734
+
26358
26735
  /**
26359
26736
  * Properties of an ExtensionConfig.
26360
26737
  */
@@ -34024,6 +34401,14 @@ declare type replit$goval$api$IReplToken = {|
34024
34401
  | replit$goval$api$repl$BuildInfo
34025
34402
  | replit$goval$api$repl$IBuildInfo
34026
34403
  | null,
34404
+
34405
+ /**
34406
+ * ReplToken pid2Info
34407
+ */
34408
+ pid2Info?:
34409
+ | replit$goval$api$repl$Pid2Binary
34410
+ | replit$goval$api$repl$IPid2Binary
34411
+ | null,
34027
34412
  |};
34028
34413
 
34029
34414
  /**
@@ -34116,6 +34501,11 @@ declare class replit$goval$api$ReplToken {
34116
34501
  */
34117
34502
  buildInfo?: replit$goval$api$repl$BuildInfo | null;
34118
34503
 
34504
+ /**
34505
+ * ReplToken pid2Info.
34506
+ */
34507
+ pid2Info?: replit$goval$api$repl$Pid2Binary | null;
34508
+
34119
34509
  /**
34120
34510
  * ReplToken metadata.
34121
34511
  */
@@ -39188,6 +39578,7 @@ declare var npm$namespace$replit$goval$api$repl: {|
39188
39578
  IPermissions: Class<replit$goval$api$repl$IPermissions>,
39189
39579
  IMetadata: Class<replit$goval$api$repl$IMetadata>,
39190
39580
  IBuildInfo: Class<replit$goval$api$repl$IBuildInfo>,
39581
+ IPid2Binary: Class<replit$goval$api$repl$IPid2Binary>,
39191
39582
  Buckets: typeof replit$goval$api$repl$Buckets,
39192
39583
  Repl: typeof replit$goval$api$repl$Repl,
39193
39584
  UserId: typeof replit$goval$api$repl$UserId,
@@ -39195,6 +39586,7 @@ declare var npm$namespace$replit$goval$api$repl: {|
39195
39586
  Permissions: typeof replit$goval$api$repl$Permissions,
39196
39587
  Metadata: typeof replit$goval$api$repl$Metadata,
39197
39588
  BuildInfo: typeof replit$goval$api$repl$BuildInfo,
39589
+ Pid2Binary: typeof replit$goval$api$repl$Pid2Binary,
39198
39590
  |};
39199
39591
 
39200
39592
  /**
@@ -40466,6 +40858,133 @@ declare class replit$goval$api$repl$BuildInfo {
40466
40858
  static getTypeUrl(typeUrlPrefix?: string): string;
40467
40859
  }
40468
40860
 
40861
+ /**
40862
+ * Properties of a Pid2Binary.
40863
+ */
40864
+ declare type replit$goval$api$repl$IPid2Binary = {|
40865
+ /**
40866
+ * Pid2Binary version
40867
+ */
40868
+ version?: string | null,
40869
+ |};
40870
+
40871
+ /**
40872
+ * Represents a Pid2Binary.
40873
+ */
40874
+ declare class replit$goval$api$repl$Pid2Binary {
40875
+ /**
40876
+ * Constructs a new Pid2Binary.
40877
+ * @param [properties] Properties to set
40878
+ */
40879
+ constructor(properties?: replit$goval$api$repl$IPid2Binary): this;
40880
+
40881
+ /**
40882
+ * Pid2Binary version.
40883
+ */
40884
+ version: string;
40885
+
40886
+ /**
40887
+ * Creates a new Pid2Binary instance using the specified properties.
40888
+ * @param [properties] Properties to set
40889
+ * @returns Pid2Binary instance
40890
+ */
40891
+ static create(
40892
+ properties?: replit$goval$api$repl$IPid2Binary
40893
+ ): replit$goval$api$repl$Pid2Binary;
40894
+
40895
+ /**
40896
+ * [object Object],[object Object],[object Object]
40897
+ * @param message Pid2Binary message or plain object to encode
40898
+ * @param [writer] Writer to encode to
40899
+ * @returns Writer
40900
+ */
40901
+ static encode(
40902
+ message: replit$goval$api$repl$Pid2Binary,
40903
+ writer?: $protobuf.Writer
40904
+ ): $protobuf.Writer;
40905
+
40906
+ /**
40907
+ * [object Object],[object Object],[object Object]
40908
+ * @param message Pid2Binary message or plain object to encode
40909
+ * @param [writer] Writer to encode to
40910
+ * @returns Writer
40911
+ */
40912
+ static encodeDelimited(
40913
+ message: replit$goval$api$repl$Pid2Binary,
40914
+ writer?: $protobuf.Writer
40915
+ ): $protobuf.Writer;
40916
+
40917
+ /**
40918
+ * Decodes a Pid2Binary message from the specified reader or buffer.
40919
+ * @param reader Reader or buffer to decode from
40920
+ * @param [length] Message length if known beforehand
40921
+ * @returns Pid2Binary
40922
+ * @throws {Error} If the payload is not a reader or valid buffer
40923
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40924
+ */
40925
+ static decode(
40926
+ reader: $protobuf.Reader | Uint8Array,
40927
+ length?: number
40928
+ ): replit$goval$api$repl$Pid2Binary;
40929
+
40930
+ /**
40931
+ * Decodes a Pid2Binary message from the specified reader or buffer, length delimited.
40932
+ * @param reader Reader or buffer to decode from
40933
+ * @returns Pid2Binary
40934
+ * @throws {Error} If the payload is not a reader or valid buffer
40935
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40936
+ */
40937
+ static decodeDelimited(
40938
+ reader: $protobuf.Reader | Uint8Array
40939
+ ): replit$goval$api$repl$Pid2Binary;
40940
+
40941
+ /**
40942
+ * Verifies a Pid2Binary message.
40943
+ * @param message Plain object to verify
40944
+ * @returns `null` if valid, otherwise the reason why it is not
40945
+ */
40946
+ static verify(message: {|
40947
+ [k: string]: any,
40948
+ |}): string | null;
40949
+
40950
+ /**
40951
+ * Creates a Pid2Binary message from a plain object. Also converts values to their respective internal types.
40952
+ * @param object Plain object
40953
+ * @returns Pid2Binary
40954
+ */
40955
+ static fromObject(object: {|
40956
+ [k: string]: any,
40957
+ |}): replit$goval$api$repl$Pid2Binary;
40958
+
40959
+ /**
40960
+ * Creates a plain object from a Pid2Binary message. Also converts values to other types if specified.
40961
+ * @param message Pid2Binary
40962
+ * @param [options] Conversion options
40963
+ * @returns Plain object
40964
+ */
40965
+ static toObject(
40966
+ message: replit$goval$api$repl$Pid2Binary,
40967
+ options?: $protobuf.IConversionOptions
40968
+ ): {|
40969
+ [k: string]: any,
40970
+ |};
40971
+
40972
+ /**
40973
+ * Converts this Pid2Binary to JSON.
40974
+ * @returns JSON object
40975
+ */
40976
+ toJSON(): {|
40977
+ [k: string]: any,
40978
+ |};
40979
+
40980
+ /**
40981
+ * Gets the default type url for Pid2Binary
40982
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
40983
+ * @returns The default type url
40984
+ */
40985
+ static getTypeUrl(typeUrlPrefix?: string): string;
40986
+ }
40987
+
40469
40988
  /**
40470
40989
  * Properties of a PrivateReplsPowerup.
40471
40990
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.33",
3
+ "version": "0.3.35",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",