@replit/protocol 0.4.10 → 0.4.12

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/main/index.d.ts CHANGED
@@ -25776,6 +25776,9 @@ export namespace replit {
25776
25776
 
25777
25777
  /** ReplDomainReplitDev suffix */
25778
25778
  suffix?: (string|null);
25779
+
25780
+ /** ReplDomainReplitDev orgSlug */
25781
+ orgSlug?: (string|null);
25779
25782
  }
25780
25783
 
25781
25784
  /** Represents a ReplDomainReplitDev. */
@@ -25802,6 +25805,9 @@ export namespace replit {
25802
25805
  /** ReplDomainReplitDev suffix. */
25803
25806
  public suffix: string;
25804
25807
 
25808
+ /** ReplDomainReplitDev orgSlug. */
25809
+ public orgSlug: string;
25810
+
25805
25811
  /**
25806
25812
  * Creates a new ReplDomainReplitDev instance using the specified properties.
25807
25813
  * @param [properties] Properties to set
@@ -29126,6 +29132,9 @@ export namespace replit {
29126
29132
 
29127
29133
  /** ReplToken externalSecrets */
29128
29134
  externalSecrets?: ((replit.goval.api.token.ReplToken.ExternalSecret|replit.goval.api.token.ReplToken.IExternalSecret)[]|null);
29135
+
29136
+ /** ReplToken before */
29137
+ before?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
29129
29138
  }
29130
29139
 
29131
29140
  /** Represents a ReplToken. */
@@ -29194,6 +29203,9 @@ export namespace replit {
29194
29203
  /** ReplToken externalSecrets. */
29195
29204
  public externalSecrets: replit.goval.api.token.ReplToken.ExternalSecret[];
29196
29205
 
29206
+ /** ReplToken before. */
29207
+ public before?: (google.protobuf.Timestamp|null);
29208
+
29197
29209
  /** ReplToken metadata. */
29198
29210
  public metadata?: ("repl"|"id"|"classroom");
29199
29211
 
@@ -32653,6 +32665,9 @@ export namespace replit {
32653
32665
 
32654
32666
  /** GetReplConnectionInfoRequest sourceReplId */
32655
32667
  sourceReplId?: (string|null);
32668
+
32669
+ /** GetReplConnectionInfoRequest orgSlug */
32670
+ orgSlug?: (string|null);
32656
32671
  }
32657
32672
 
32658
32673
  /** Represents a GetReplConnectionInfoRequest. */
@@ -32685,6 +32700,9 @@ export namespace replit {
32685
32700
  /** GetReplConnectionInfoRequest sourceReplId. */
32686
32701
  public sourceReplId: string;
32687
32702
 
32703
+ /** GetReplConnectionInfoRequest orgSlug. */
32704
+ public orgSlug: string;
32705
+
32688
32706
  /** GetReplConnectionInfoRequest defaultLocation. */
32689
32707
  public defaultLocation?: ("defaultCluster"|"defaultContinent");
32690
32708
 
@@ -36472,6 +36490,9 @@ export namespace replit {
36472
36490
 
36473
36491
  /** Org type */
36474
36492
  type?: (replit.goval.api.repl.Org.OrgType|null);
36493
+
36494
+ /** Org slug */
36495
+ slug?: (string|null);
36475
36496
  }
36476
36497
 
36477
36498
  /** Represents an Org. */
@@ -36489,6 +36510,9 @@ export namespace replit {
36489
36510
  /** Org type. */
36490
36511
  public type: replit.goval.api.repl.Org.OrgType;
36491
36512
 
36513
+ /** Org slug. */
36514
+ public slug: string;
36515
+
36492
36516
  /**
36493
36517
  * Creates a new Org instance using the specified properties.
36494
36518
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -65351,6 +65351,7 @@
65351
65351
  * @property {string|null} [signature] ReplDomainReplitDev signature
65352
65352
  * @property {string|null} [clusterName] ReplDomainReplitDev clusterName
65353
65353
  * @property {string|null} [suffix] ReplDomainReplitDev suffix
65354
+ * @property {string|null} [orgSlug] ReplDomainReplitDev orgSlug
65354
65355
  */
65355
65356
 
65356
65357
  /**
@@ -65407,6 +65408,14 @@
65407
65408
  */
65408
65409
  ReplDomainReplitDev.prototype.suffix = "";
65409
65410
 
65411
+ /**
65412
+ * ReplDomainReplitDev orgSlug.
65413
+ * @member {string} orgSlug
65414
+ * @memberof replit.goval.api.ReplDomainReplitDev
65415
+ * @instance
65416
+ */
65417
+ ReplDomainReplitDev.prototype.orgSlug = "";
65418
+
65410
65419
  /**
65411
65420
  * Creates a new ReplDomainReplitDev instance using the specified properties.
65412
65421
  * @function create
@@ -65441,6 +65450,8 @@
65441
65450
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterName);
65442
65451
  if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
65443
65452
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.suffix);
65453
+ if (message.orgSlug != null && Object.hasOwnProperty.call(message, "orgSlug"))
65454
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.orgSlug);
65444
65455
  return writer;
65445
65456
  };
65446
65457
 
@@ -65495,6 +65506,10 @@
65495
65506
  message.suffix = reader.string();
65496
65507
  break;
65497
65508
  }
65509
+ case 6: {
65510
+ message.orgSlug = reader.string();
65511
+ break;
65512
+ }
65498
65513
  default:
65499
65514
  reader.skipType(tag & 7);
65500
65515
  break;
@@ -65545,6 +65560,9 @@
65545
65560
  if (message.suffix != null && message.hasOwnProperty("suffix"))
65546
65561
  if (!$util.isString(message.suffix))
65547
65562
  return "suffix: string expected";
65563
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
65564
+ if (!$util.isString(message.orgSlug))
65565
+ return "orgSlug: string expected";
65548
65566
  return null;
65549
65567
  };
65550
65568
 
@@ -65570,6 +65588,8 @@
65570
65588
  message.clusterName = String(object.clusterName);
65571
65589
  if (object.suffix != null)
65572
65590
  message.suffix = String(object.suffix);
65591
+ if (object.orgSlug != null)
65592
+ message.orgSlug = String(object.orgSlug);
65573
65593
  return message;
65574
65594
  };
65575
65595
 
@@ -65592,6 +65612,7 @@
65592
65612
  object.signature = "";
65593
65613
  object.clusterName = "";
65594
65614
  object.suffix = "";
65615
+ object.orgSlug = "";
65595
65616
  }
65596
65617
  if (message.id != null && message.hasOwnProperty("id"))
65597
65618
  object.id = message.id;
@@ -65603,6 +65624,8 @@
65603
65624
  object.clusterName = message.clusterName;
65604
65625
  if (message.suffix != null && message.hasOwnProperty("suffix"))
65605
65626
  object.suffix = message.suffix;
65627
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
65628
+ object.orgSlug = message.orgSlug;
65606
65629
  return object;
65607
65630
  };
65608
65631
 
@@ -73581,6 +73604,7 @@
73581
73604
  * @property {boolean|null} [paid] ReplToken paid
73582
73605
  * @property {boolean|null} [replexec] ReplToken replexec
73583
73606
  * @property {Array.<replit.goval.api.token.ReplToken.ExternalSecret|replit.goval.api.token.ReplToken.IExternalSecret>|null} [externalSecrets] ReplToken externalSecrets
73607
+ * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [before] ReplToken before
73584
73608
  */
73585
73609
 
73586
73610
  /**
@@ -73752,6 +73776,14 @@
73752
73776
  */
73753
73777
  ReplToken.prototype.externalSecrets = $util.emptyArray;
73754
73778
 
73779
+ /**
73780
+ * ReplToken before.
73781
+ * @member {google.protobuf.Timestamp|null|undefined} before
73782
+ * @memberof replit.goval.api.token.ReplToken
73783
+ * @instance
73784
+ */
73785
+ ReplToken.prototype.before = null;
73786
+
73755
73787
  // OneOf field names bound to virtual getters and setters
73756
73788
  var $oneOfFields;
73757
73789
 
@@ -73831,6 +73863,8 @@
73831
73863
  if (message.externalSecrets != null && message.externalSecrets.length)
73832
73864
  for (var i = 0; i < message.externalSecrets.length; ++i)
73833
73865
  $root.replit.goval.api.token.ReplToken.ExternalSecret.encode(message.externalSecrets[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
73866
+ if (message.before != null && Object.hasOwnProperty.call(message, "before"))
73867
+ $root.google.protobuf.Timestamp.encode(message.before, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
73834
73868
  return writer;
73835
73869
  };
73836
73870
 
@@ -73947,6 +73981,10 @@
73947
73981
  message.externalSecrets.push($root.replit.goval.api.token.ReplToken.ExternalSecret.decode(reader, reader.uint32()));
73948
73982
  break;
73949
73983
  }
73984
+ case 23: {
73985
+ message.before = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
73986
+ break;
73987
+ }
73950
73988
  default:
73951
73989
  reader.skipType(tag & 7);
73952
73990
  break;
@@ -74103,6 +74141,11 @@
74103
74141
  return "externalSecrets." + error;
74104
74142
  }
74105
74143
  }
74144
+ if (message.before != null && message.hasOwnProperty("before")) {
74145
+ var error = $root.google.protobuf.Timestamp.verify(message.before);
74146
+ if (error)
74147
+ return "before." + error;
74148
+ }
74106
74149
  return null;
74107
74150
  };
74108
74151
 
@@ -74251,6 +74294,11 @@
74251
74294
  message.externalSecrets[i] = $root.replit.goval.api.token.ReplToken.ExternalSecret.fromObject(object.externalSecrets[i]);
74252
74295
  }
74253
74296
  }
74297
+ if (object.before != null) {
74298
+ if (typeof object.before !== "object")
74299
+ throw TypeError(".replit.goval.api.token.ReplToken.before: object expected");
74300
+ message.before = $root.google.protobuf.Timestamp.fromObject(object.before);
74301
+ }
74254
74302
  return message;
74255
74303
  };
74256
74304
 
@@ -74286,6 +74334,7 @@
74286
74334
  object.pid2Info = null;
74287
74335
  object.paid = false;
74288
74336
  object.replexec = false;
74337
+ object.before = null;
74289
74338
  }
74290
74339
  if (message.iat != null && message.hasOwnProperty("iat"))
74291
74340
  object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
@@ -74343,6 +74392,8 @@
74343
74392
  for (var j = 0; j < message.externalSecrets.length; ++j)
74344
74393
  object.externalSecrets[j] = $root.replit.goval.api.token.ReplToken.ExternalSecret.toObject(message.externalSecrets[j], options);
74345
74394
  }
74395
+ if (message.before != null && message.hasOwnProperty("before"))
74396
+ object.before = $root.google.protobuf.Timestamp.toObject(message.before, options);
74346
74397
  return object;
74347
74398
  };
74348
74399
 
@@ -82328,6 +82379,7 @@
82328
82379
  * @property {string|null} [defaultContinent] GetReplConnectionInfoRequest defaultContinent
82329
82380
  * @property {replit.goval.api.lore.ReplLocation|replit.goval.api.lore.IReplLocation|null} [replLocation] GetReplConnectionInfoRequest replLocation
82330
82381
  * @property {string|null} [sourceReplId] GetReplConnectionInfoRequest sourceReplId
82382
+ * @property {string|null} [orgSlug] GetReplConnectionInfoRequest orgSlug
82331
82383
  */
82332
82384
 
82333
82385
  /**
@@ -82400,6 +82452,14 @@
82400
82452
  */
82401
82453
  GetReplConnectionInfoRequest.prototype.sourceReplId = "";
82402
82454
 
82455
+ /**
82456
+ * GetReplConnectionInfoRequest orgSlug.
82457
+ * @member {string} orgSlug
82458
+ * @memberof replit.goval.api.lore.GetReplConnectionInfoRequest
82459
+ * @instance
82460
+ */
82461
+ GetReplConnectionInfoRequest.prototype.orgSlug = "";
82462
+
82403
82463
  // OneOf field names bound to virtual getters and setters
82404
82464
  var $oneOfFields;
82405
82465
 
@@ -82452,6 +82512,8 @@
82452
82512
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.defaultContinent);
82453
82513
  if (message.replLocation != null && Object.hasOwnProperty.call(message, "replLocation"))
82454
82514
  $root.replit.goval.api.lore.ReplLocation.encode(message.replLocation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
82515
+ if (message.orgSlug != null && Object.hasOwnProperty.call(message, "orgSlug"))
82516
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.orgSlug);
82455
82517
  return writer;
82456
82518
  };
82457
82519
 
@@ -82514,6 +82576,10 @@
82514
82576
  message.sourceReplId = reader.string();
82515
82577
  break;
82516
82578
  }
82579
+ case 11: {
82580
+ message.orgSlug = reader.string();
82581
+ break;
82582
+ }
82517
82583
  default:
82518
82584
  reader.skipType(tag & 7);
82519
82585
  break;
@@ -82579,6 +82645,9 @@
82579
82645
  if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
82580
82646
  if (!$util.isString(message.sourceReplId))
82581
82647
  return "sourceReplId: string expected";
82648
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
82649
+ if (!$util.isString(message.orgSlug))
82650
+ return "orgSlug: string expected";
82582
82651
  return null;
82583
82652
  };
82584
82653
 
@@ -82611,6 +82680,8 @@
82611
82680
  }
82612
82681
  if (object.sourceReplId != null)
82613
82682
  message.sourceReplId = String(object.sourceReplId);
82683
+ if (object.orgSlug != null)
82684
+ message.orgSlug = String(object.orgSlug);
82614
82685
  return message;
82615
82686
  };
82616
82687
 
@@ -82633,6 +82704,7 @@
82633
82704
  object.persistent = false;
82634
82705
  object.sourceReplId = "";
82635
82706
  object.replLocation = null;
82707
+ object.orgSlug = "";
82636
82708
  }
82637
82709
  if (message.replId != null && message.hasOwnProperty("replId"))
82638
82710
  object.replId = message.replId;
@@ -82654,6 +82726,8 @@
82654
82726
  }
82655
82727
  if (message.replLocation != null && message.hasOwnProperty("replLocation"))
82656
82728
  object.replLocation = $root.replit.goval.api.lore.ReplLocation.toObject(message.replLocation, options);
82729
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
82730
+ object.orgSlug = message.orgSlug;
82657
82731
  return object;
82658
82732
  };
82659
82733
 
@@ -90749,6 +90823,7 @@
90749
90823
  * @interface IOrg
90750
90824
  * @property {string|null} [id] Org id
90751
90825
  * @property {replit.goval.api.repl.Org.OrgType|null} [type] Org type
90826
+ * @property {string|null} [slug] Org slug
90752
90827
  */
90753
90828
 
90754
90829
  /**
@@ -90781,6 +90856,14 @@
90781
90856
  */
90782
90857
  Org.prototype.type = 0;
90783
90858
 
90859
+ /**
90860
+ * Org slug.
90861
+ * @member {string} slug
90862
+ * @memberof replit.goval.api.repl.Org
90863
+ * @instance
90864
+ */
90865
+ Org.prototype.slug = "";
90866
+
90784
90867
  /**
90785
90868
  * Creates a new Org instance using the specified properties.
90786
90869
  * @function create
@@ -90809,6 +90892,8 @@
90809
90892
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
90810
90893
  if (message.type != null && Object.hasOwnProperty.call(message, "type"))
90811
90894
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
90895
+ if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
90896
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
90812
90897
  return writer;
90813
90898
  };
90814
90899
 
@@ -90851,6 +90936,10 @@
90851
90936
  message.type = reader.int32();
90852
90937
  break;
90853
90938
  }
90939
+ case 3: {
90940
+ message.slug = reader.string();
90941
+ break;
90942
+ }
90854
90943
  default:
90855
90944
  reader.skipType(tag & 7);
90856
90945
  break;
@@ -90898,6 +90987,9 @@
90898
90987
  case 2:
90899
90988
  break;
90900
90989
  }
90990
+ if (message.slug != null && message.hasOwnProperty("slug"))
90991
+ if (!$util.isString(message.slug))
90992
+ return "slug: string expected";
90901
90993
  return null;
90902
90994
  };
90903
90995
 
@@ -90935,6 +91027,8 @@
90935
91027
  message.type = 2;
90936
91028
  break;
90937
91029
  }
91030
+ if (object.slug != null)
91031
+ message.slug = String(object.slug);
90938
91032
  return message;
90939
91033
  };
90940
91034
 
@@ -90954,11 +91048,14 @@
90954
91048
  if (options.defaults) {
90955
91049
  object.id = "";
90956
91050
  object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
91051
+ object.slug = "";
90957
91052
  }
90958
91053
  if (message.id != null && message.hasOwnProperty("id"))
90959
91054
  object.id = message.id;
90960
91055
  if (message.type != null && message.hasOwnProperty("type"))
90961
91056
  object.type = options.enums === String ? $root.replit.goval.api.repl.Org.OrgType[message.type] === undefined ? message.type : $root.replit.goval.api.repl.Org.OrgType[message.type] : message.type;
91057
+ if (message.slug != null && message.hasOwnProperty("slug"))
91058
+ object.slug = message.slug;
90962
91059
  return object;
90963
91060
  };
90964
91061
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "author": "eng@replit.com",