@daocloud-proto/skoala 0.26.1 → 0.26.2-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.
@@ -27,6 +27,7 @@ export type ListLaneReq = {
27
27
  meshId?: string
28
28
  page?: number
29
29
  pageSize?: number
30
+ pageSearch?: string
30
31
  }
31
32
 
32
33
  export type ListLaneRes = {
@@ -113,7 +114,7 @@ export type AddLaneServiceReq = {
113
114
  workspaceId?: string
114
115
  meshId?: string
115
116
  laneName?: string
116
- services?: AddLaneService[]
117
+ service?: AddLaneService
117
118
  }
118
119
 
119
120
  export type DeleteLaneServiceReq = {
@@ -404,7 +404,28 @@ export type ListServiceIstioPluginRLSPortsReq = {
404
404
  }
405
405
 
406
406
  export type ListServiceIstioPluginRLSPortsRes = {
407
- ports?: number[]
407
+ ports?: portRlsPluginInfo[]
408
+ }
409
+
410
+ export type portRlsPluginInfo = {
411
+ port?: number
412
+ ratelimitPluginName?: string
413
+ domain?: string
414
+ }
415
+
416
+ export type GetServiceIstioPluginRLSRulesReq = {
417
+ workspaceId?: string
418
+ meshId?: string
419
+ namespaceName?: string
420
+ serviceName?: string
421
+ port?: number
422
+ }
423
+
424
+ export type GetServiceIstioPluginRLSRulesRes = {
425
+ port?: number
426
+ ratelimitPluginName?: string
427
+ domain?: string
428
+ rlsRuleName?: string
408
429
  }
409
430
 
410
431
  export type ListServiceIstioPluginRLSRulesReq = {
@@ -415,12 +436,14 @@ export type ListServiceIstioPluginRLSRulesReq = {
415
436
  }
416
437
 
417
438
  export type ListServiceIstioPluginRLSRulesRes = {
418
- items?: PortRuleName[]
439
+ items?: PortRlsRule[]
419
440
  }
420
441
 
421
- export type PortRuleName = {
442
+ export type PortRlsRule = {
422
443
  port?: number
423
- ruleName?: string
444
+ ratelimitPluginName?: string
445
+ domain?: string
446
+ rlsRuleName?: string
424
447
  }
425
448
 
426
449
  export type CreateServiceIstioPluginRLSRulesReq = {
@@ -630,7 +653,7 @@ export type CreateConnectionPoolReq = {
630
653
  meshId?: string
631
654
  namespaceName?: string
632
655
  serviceName?: string
633
- port?: number
656
+ ports?: number[]
634
657
  cp?: ConnectionPool
635
658
  }
636
659
 
@@ -694,7 +717,7 @@ export type CreateOutlierDetectionReq = {
694
717
  meshId?: string
695
718
  namespaceName?: string
696
719
  serviceName?: string
697
- port?: number
720
+ ports?: number[]
698
721
  od?: OutlierDetection
699
722
  }
700
723
 
@@ -758,7 +781,7 @@ export type CreateRewriteReq = {
758
781
  meshId?: string
759
782
  namespaceName?: string
760
783
  serviceName?: string
761
- port?: number
784
+ ports?: number[]
762
785
  rewrite?: HTTPRewrite
763
786
  }
764
787
 
@@ -886,7 +909,7 @@ export type CreateRetryReq = {
886
909
  meshId?: string
887
910
  namespaceName?: string
888
911
  serviceName?: string
889
- port?: number
912
+ ports?: number[]
890
913
  retry?: HTTPRetry
891
914
  }
892
915
 
@@ -950,7 +973,7 @@ export type CreateTimeoutReq = {
950
973
  meshId?: string
951
974
  namespaceName?: string
952
975
  serviceName?: string
953
- port?: number
976
+ ports?: number[]
954
977
  timeout?: GoogleProtobufDuration.Duration
955
978
  }
956
979
 
@@ -496,6 +496,9 @@ export class Mesh {
496
496
  static ListServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes> {
497
497
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
498
498
  }
499
+ static GetServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes> {
500
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
501
+ }
499
502
  static CreateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
500
503
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
501
504
  }
@@ -530,7 +533,7 @@ export class Mesh {
530
533
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
531
534
  }
532
535
  static CreateConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes> {
533
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
536
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
534
537
  }
535
538
  static UpdateConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolRes> {
536
539
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -545,7 +548,7 @@ export class Mesh {
545
548
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
546
549
  }
547
550
  static CreateOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes> {
548
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
551
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
549
552
  }
550
553
  static UpdateOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionRes> {
551
554
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -560,7 +563,7 @@ export class Mesh {
560
563
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetRewriteReq, SkoalaApiHostedV1alpha1Mesh.GetRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
561
564
  }
562
565
  static CreateRewrite(req: SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes> {
563
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
566
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
564
567
  }
565
568
  static UpdateRewrite(req: SkoalaApiHostedV1alpha1Mesh.UpdateRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateRewriteRes> {
566
569
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateRewriteReq, SkoalaApiHostedV1alpha1Mesh.UpdateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -590,7 +593,7 @@ export class Mesh {
590
593
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetRetryReq, SkoalaApiHostedV1alpha1Mesh.GetRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
591
594
  }
592
595
  static CreateRetry(req: SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateRetryRes> {
593
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, SkoalaApiHostedV1alpha1Mesh.CreateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
596
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, SkoalaApiHostedV1alpha1Mesh.CreateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
594
597
  }
595
598
  static UpdateRetry(req: SkoalaApiHostedV1alpha1Mesh.UpdateRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateRetryRes> {
596
599
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateRetryReq, SkoalaApiHostedV1alpha1Mesh.UpdateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -605,7 +608,7 @@ export class Mesh {
605
608
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetTimeoutReq, SkoalaApiHostedV1alpha1Mesh.GetTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
606
609
  }
607
610
  static CreateTimeout(req: SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes> {
608
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
611
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
609
612
  }
610
613
  static UpdateTimeout(req: SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutRes> {
611
614
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -885,6 +888,6 @@ export class Lane {
885
888
  return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.AddLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
886
889
  }
887
890
  static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
888
- return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
891
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
889
892
  }
890
893
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.26.1",
3
+ "version": "0.26.2-12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {