@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6
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/google/api/annotations_pb.ts +33 -0
- package/google/api/field_behavior.ts +95 -0
- package/google/api/field_behavior_pb.ts +139 -0
- package/google/api/http.ts +695 -0
- package/google/api/http_pb.ts +547 -0
- package/google/api/httpbody.ts +159 -0
- package/google/api/httpbody_pb.ts +122 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/struct.ts +484 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/google/protobuf/wrappers.ts +752 -0
- package/package.json +47 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
- package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/raystack/assets/index.ts +29 -0
- package/raystack/assets/v1beta1/bucket.ts +362 -0
- package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
- package/raystack/assets/v1beta1/dashboard.ts +426 -0
- package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
- package/raystack/assets/v1beta1/event.ts +105 -0
- package/raystack/assets/v1beta1/event_pb.ts +70 -0
- package/raystack/assets/v1beta1/group.ts +223 -0
- package/raystack/assets/v1beta1/group_pb.ts +149 -0
- package/raystack/assets/v1beta1/job.ts +147 -0
- package/raystack/assets/v1beta1/job_pb.ts +100 -0
- package/raystack/assets/v1beta1/lineage.ts +90 -0
- package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
- package/raystack/assets/v1beta1/ownership.ts +179 -0
- package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
- package/raystack/assets/v1beta1/preview.ts +87 -0
- package/raystack/assets/v1beta1/preview_pb.ts +58 -0
- package/raystack/assets/v1beta1/properties.ts +116 -0
- package/raystack/assets/v1beta1/properties_pb.ts +63 -0
- package/raystack/assets/v1beta1/resource.ts +149 -0
- package/raystack/assets/v1beta1/resource_pb.ts +96 -0
- package/raystack/assets/v1beta1/schema.ts +421 -0
- package/raystack/assets/v1beta1/schema_pb.ts +262 -0
- package/raystack/assets/v1beta1/table.ts +408 -0
- package/raystack/assets/v1beta1/table_pb.ts +266 -0
- package/raystack/assets/v1beta1/timestamp.ts +158 -0
- package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
- package/raystack/assets/v1beta1/topic.ts +253 -0
- package/raystack/assets/v1beta1/topic_pb.ts +171 -0
- package/raystack/assets/v1beta1/user.ts +451 -0
- package/raystack/assets/v1beta1/user_pb.ts +292 -0
- package/raystack/assets/v1beta2/application.ts +125 -0
- package/raystack/assets/v1beta2/application_pb.ts +79 -0
- package/raystack/assets/v1beta2/asset.ts +269 -0
- package/raystack/assets/v1beta2/asset_pb.ts +157 -0
- package/raystack/assets/v1beta2/bucket.ts +341 -0
- package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
- package/raystack/assets/v1beta2/common.ts +392 -0
- package/raystack/assets/v1beta2/common_pb.ts +258 -0
- package/raystack/assets/v1beta2/dashboard.ts +393 -0
- package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
- package/raystack/assets/v1beta2/experiment.ts +274 -0
- package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
- package/raystack/assets/v1beta2/feature_table.ts +387 -0
- package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
- package/raystack/assets/v1beta2/group.ts +178 -0
- package/raystack/assets/v1beta2/group_pb.ts +118 -0
- package/raystack/assets/v1beta2/job.ts +99 -0
- package/raystack/assets/v1beta2/job_pb.ts +65 -0
- package/raystack/assets/v1beta2/metric.ts +163 -0
- package/raystack/assets/v1beta2/metric_pb.ts +105 -0
- package/raystack/assets/v1beta2/model.ts +519 -0
- package/raystack/assets/v1beta2/model_pb.ts +322 -0
- package/raystack/assets/v1beta2/table.ts +663 -0
- package/raystack/assets/v1beta2/table_pb.ts +409 -0
- package/raystack/assets/v1beta2/topic.ts +275 -0
- package/raystack/assets/v1beta2/topic_pb.ts +181 -0
- package/raystack/assets/v1beta2/user.ts +433 -0
- package/raystack/assets/v1beta2/user_pb.ts +277 -0
- package/raystack/common/index.ts +3 -0
- package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
- package/raystack/common/v1/service.client.ts +37 -0
- package/raystack/common/v1/service.ts +245 -0
- package/raystack/common/v1/service_connect.ts +26 -0
- package/raystack/common/v1/service_pb.ts +149 -0
- package/raystack/compass/index.ts +3 -0
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
- package/raystack/compass/v1beta1/service.client.ts +594 -0
- package/raystack/compass/v1beta1/service.ts +8169 -0
- package/raystack/compass/v1beta1/service_connect.ts +407 -0
- package/raystack/compass/v1beta1/service_pb.ts +4975 -0
- package/raystack/entropy/index.ts +6 -0
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
- package/raystack/entropy/v1beta1/module.client.ts +89 -0
- package/raystack/entropy/v1beta1/module.ts +692 -0
- package/raystack/entropy/v1beta1/module_connect.ts +62 -0
- package/raystack/entropy/v1beta1/module_pb.ts +445 -0
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
- package/raystack/entropy/v1beta1/resource.client.ts +129 -0
- package/raystack/entropy/v1beta1/resource.ts +1817 -0
- package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
- package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
- package/raystack/frontier/index.ts +7 -0
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
- package/raystack/frontier/v1beta1/admin.client.ts +849 -0
- package/raystack/frontier/v1beta1/admin.ts +9007 -0
- package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
- package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
- package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
- package/raystack/frontier/v1beta1/frontier.ts +23706 -0
- package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
- package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
- package/raystack/frontier/v1beta1/models.ts +7433 -0
- package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
- package/raystack/guardian/index.ts +3 -0
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
- package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
- package/raystack/guardian/v1beta1/guardian.ts +9688 -0
- package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
- package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
- package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
- package/raystack/optimus/core/v1beta1/backup.ts +708 -0
- package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
- package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
- package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
- package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/project.ts +520 -0
- package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
- package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
- package/raystack/optimus/core/v1beta1/replay.ts +881 -0
- package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
- package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
- package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
- package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
- package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
- package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
- package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
- package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
- package/raystack/optimus/core/v1beta1/secret.ts +619 -0
- package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
- package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
- package/raystack/optimus/core/v1beta1/status.ts +113 -0
- package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
- package/raystack/optimus/integration/v1beta1/event.ts +531 -0
- package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
- package/raystack/predator/index.ts +2 -0
- package/raystack/predator/v1beta1/metrics_log.ts +457 -0
- package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
- package/raystack/predator/v1beta1/result_log.ts +390 -0
- package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
- package/raystack/raccoon/index.ts +3 -0
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
- package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
- package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
- package/raystack/siren/index.ts +3 -0
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
- package/raystack/siren/v1beta1/siren.client.ts +479 -0
- package/raystack/siren/v1beta1/siren.ts +6507 -0
- package/raystack/siren/v1beta1/siren_connect.ts +332 -0
- package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
- package/raystack/stencil/index.ts +3 -0
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
- package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
- package/raystack/stencil/v1beta1/stencil.ts +2716 -0
- package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
- package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
- package/validate/validate.ts +4130 -0
- package/validate/validate_pb.ts +2621 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file raystack/optimus/core/v1beta1/namespace.proto (package raystack.optimus.core.v1beta1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
import { GetNamespaceRequest, GetNamespaceResponse, ListProjectNamespacesRequest, ListProjectNamespacesResponse, RegisterProjectNamespaceRequest, RegisterProjectNamespaceResponse } from "./namespace_pb.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* RegisterProjectNamespace creates a new namespace for a project
|
|
11
|
+
*
|
|
12
|
+
* @generated from rpc raystack.optimus.core.v1beta1.NamespaceService.RegisterProjectNamespace
|
|
13
|
+
*/
|
|
14
|
+
export const registerProjectNamespace = {
|
|
15
|
+
localName: "registerProjectNamespace",
|
|
16
|
+
name: "RegisterProjectNamespace",
|
|
17
|
+
kind: MethodKind.Unary,
|
|
18
|
+
I: RegisterProjectNamespaceRequest,
|
|
19
|
+
O: RegisterProjectNamespaceResponse,
|
|
20
|
+
service: {
|
|
21
|
+
typeName: "raystack.optimus.core.v1beta1.NamespaceService"
|
|
22
|
+
}
|
|
23
|
+
} as const;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* ListProjectNamespaces returns list of namespaces of a project
|
|
27
|
+
*
|
|
28
|
+
* @generated from rpc raystack.optimus.core.v1beta1.NamespaceService.ListProjectNamespaces
|
|
29
|
+
*/
|
|
30
|
+
export const listProjectNamespaces = {
|
|
31
|
+
localName: "listProjectNamespaces",
|
|
32
|
+
name: "ListProjectNamespaces",
|
|
33
|
+
kind: MethodKind.Unary,
|
|
34
|
+
I: ListProjectNamespacesRequest,
|
|
35
|
+
O: ListProjectNamespacesResponse,
|
|
36
|
+
service: {
|
|
37
|
+
typeName: "raystack.optimus.core.v1beta1.NamespaceService"
|
|
38
|
+
}
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* GetNamespace returns namespace details based on project_name and namespace_name
|
|
43
|
+
*
|
|
44
|
+
* @generated from rpc raystack.optimus.core.v1beta1.NamespaceService.GetNamespace
|
|
45
|
+
*/
|
|
46
|
+
export const getNamespace = {
|
|
47
|
+
localName: "getNamespace",
|
|
48
|
+
name: "GetNamespace",
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
I: GetNamespaceRequest,
|
|
51
|
+
O: GetNamespaceResponse,
|
|
52
|
+
service: {
|
|
53
|
+
typeName: "raystack.optimus.core.v1beta1.NamespaceService"
|
|
54
|
+
}
|
|
55
|
+
} as const;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/optimus/core/v1beta1/namespace.proto" (package "raystack.optimus.core.v1beta1", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { NamespaceService } from "./namespace";
|
|
7
|
+
import type { GetNamespaceResponse } from "./namespace";
|
|
8
|
+
import type { GetNamespaceRequest } from "./namespace";
|
|
9
|
+
import type { ListProjectNamespacesResponse } from "./namespace";
|
|
10
|
+
import type { ListProjectNamespacesRequest } from "./namespace";
|
|
11
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
12
|
+
import type { RegisterProjectNamespaceResponse } from "./namespace";
|
|
13
|
+
import type { RegisterProjectNamespaceRequest } from "./namespace";
|
|
14
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
15
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf service raystack.optimus.core.v1beta1.NamespaceService
|
|
18
|
+
*/
|
|
19
|
+
export interface INamespaceServiceClient {
|
|
20
|
+
/**
|
|
21
|
+
* RegisterProjectNamespace creates a new namespace for a project
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf rpc: RegisterProjectNamespace
|
|
24
|
+
*/
|
|
25
|
+
registerProjectNamespace(input: RegisterProjectNamespaceRequest, options?: RpcOptions): UnaryCall<RegisterProjectNamespaceRequest, RegisterProjectNamespaceResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* ListProjectNamespaces returns list of namespaces of a project
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf rpc: ListProjectNamespaces
|
|
30
|
+
*/
|
|
31
|
+
listProjectNamespaces(input: ListProjectNamespacesRequest, options?: RpcOptions): UnaryCall<ListProjectNamespacesRequest, ListProjectNamespacesResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* GetNamespace returns namespace details based on project_name and namespace_name
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf rpc: GetNamespace
|
|
36
|
+
*/
|
|
37
|
+
getNamespace(input: GetNamespaceRequest, options?: RpcOptions): UnaryCall<GetNamespaceRequest, GetNamespaceResponse>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf service raystack.optimus.core.v1beta1.NamespaceService
|
|
41
|
+
*/
|
|
42
|
+
export class NamespaceServiceClient implements INamespaceServiceClient, ServiceInfo {
|
|
43
|
+
typeName = NamespaceService.typeName;
|
|
44
|
+
methods = NamespaceService.methods;
|
|
45
|
+
options = NamespaceService.options;
|
|
46
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* RegisterProjectNamespace creates a new namespace for a project
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf rpc: RegisterProjectNamespace
|
|
52
|
+
*/
|
|
53
|
+
registerProjectNamespace(input: RegisterProjectNamespaceRequest, options?: RpcOptions): UnaryCall<RegisterProjectNamespaceRequest, RegisterProjectNamespaceResponse> {
|
|
54
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
55
|
+
return stackIntercept<RegisterProjectNamespaceRequest, RegisterProjectNamespaceResponse>("unary", this._transport, method, opt, input);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ListProjectNamespaces returns list of namespaces of a project
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf rpc: ListProjectNamespaces
|
|
61
|
+
*/
|
|
62
|
+
listProjectNamespaces(input: ListProjectNamespacesRequest, options?: RpcOptions): UnaryCall<ListProjectNamespacesRequest, ListProjectNamespacesResponse> {
|
|
63
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
64
|
+
return stackIntercept<ListProjectNamespacesRequest, ListProjectNamespacesResponse>("unary", this._transport, method, opt, input);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* GetNamespace returns namespace details based on project_name and namespace_name
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf rpc: GetNamespace
|
|
70
|
+
*/
|
|
71
|
+
getNamespace(input: GetNamespaceRequest, options?: RpcOptions): UnaryCall<GetNamespaceRequest, GetNamespaceResponse> {
|
|
72
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
73
|
+
return stackIntercept<GetNamespaceRequest, GetNamespaceResponse>("unary", this._transport, method, opt, input);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/optimus/core/v1beta1/namespace.proto" (package "raystack.optimus.core.v1beta1", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.RegisterProjectNamespaceRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RegisterProjectNamespaceRequest {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: string project_name = 1
|
|
20
|
+
*/
|
|
21
|
+
projectName: string;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: raystack.optimus.core.v1beta1.NamespaceSpecification namespace = 2
|
|
24
|
+
*/
|
|
25
|
+
namespace?: NamespaceSpecification;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.RegisterProjectNamespaceResponse
|
|
29
|
+
*/
|
|
30
|
+
export interface RegisterProjectNamespaceResponse {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: bool success = 1
|
|
33
|
+
*/
|
|
34
|
+
success: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: string message = 2
|
|
37
|
+
*/
|
|
38
|
+
message: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.ListProjectNamespacesRequest
|
|
42
|
+
*/
|
|
43
|
+
export interface ListProjectNamespacesRequest {
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: string project_name = 1
|
|
46
|
+
*/
|
|
47
|
+
projectName: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.ListProjectNamespacesResponse
|
|
51
|
+
*/
|
|
52
|
+
export interface ListProjectNamespacesResponse {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: repeated raystack.optimus.core.v1beta1.NamespaceSpecification namespaces = 1
|
|
55
|
+
*/
|
|
56
|
+
namespaces: NamespaceSpecification[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.GetNamespaceRequest
|
|
60
|
+
*/
|
|
61
|
+
export interface GetNamespaceRequest {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf field: string project_name = 1
|
|
64
|
+
*/
|
|
65
|
+
projectName: string;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf field: string namespace_name = 2
|
|
68
|
+
*/
|
|
69
|
+
namespaceName: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.GetNamespaceResponse
|
|
73
|
+
*/
|
|
74
|
+
export interface GetNamespaceResponse {
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: raystack.optimus.core.v1beta1.NamespaceSpecification namespace = 1
|
|
77
|
+
*/
|
|
78
|
+
namespace?: NamespaceSpecification;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf message raystack.optimus.core.v1beta1.NamespaceSpecification
|
|
82
|
+
*/
|
|
83
|
+
export interface NamespaceSpecification {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf field: string name = 1
|
|
86
|
+
*/
|
|
87
|
+
name: string;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf field: map<string, string> config = 2
|
|
90
|
+
*/
|
|
91
|
+
config: {
|
|
92
|
+
[key: string]: string;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
96
|
+
class RegisterProjectNamespaceRequest$Type extends MessageType<RegisterProjectNamespaceRequest> {
|
|
97
|
+
constructor() {
|
|
98
|
+
super("raystack.optimus.core.v1beta1.RegisterProjectNamespaceRequest", [
|
|
99
|
+
{ no: 1, name: "project_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
100
|
+
{ no: 2, name: "namespace", kind: "message", T: () => NamespaceSpecification }
|
|
101
|
+
]);
|
|
102
|
+
}
|
|
103
|
+
create(value?: PartialMessage<RegisterProjectNamespaceRequest>): RegisterProjectNamespaceRequest {
|
|
104
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
105
|
+
message.projectName = "";
|
|
106
|
+
if (value !== undefined)
|
|
107
|
+
reflectionMergePartial<RegisterProjectNamespaceRequest>(this, message, value);
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterProjectNamespaceRequest): RegisterProjectNamespaceRequest {
|
|
111
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
112
|
+
while (reader.pos < end) {
|
|
113
|
+
let [fieldNo, wireType] = reader.tag();
|
|
114
|
+
switch (fieldNo) {
|
|
115
|
+
case /* string project_name */ 1:
|
|
116
|
+
message.projectName = reader.string();
|
|
117
|
+
break;
|
|
118
|
+
case /* raystack.optimus.core.v1beta1.NamespaceSpecification namespace */ 2:
|
|
119
|
+
message.namespace = NamespaceSpecification.internalBinaryRead(reader, reader.uint32(), options, message.namespace);
|
|
120
|
+
break;
|
|
121
|
+
default:
|
|
122
|
+
let u = options.readUnknownField;
|
|
123
|
+
if (u === "throw")
|
|
124
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
125
|
+
let d = reader.skip(wireType);
|
|
126
|
+
if (u !== false)
|
|
127
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return message;
|
|
131
|
+
}
|
|
132
|
+
internalBinaryWrite(message: RegisterProjectNamespaceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
133
|
+
/* string project_name = 1; */
|
|
134
|
+
if (message.projectName !== "")
|
|
135
|
+
writer.tag(1, WireType.LengthDelimited).string(message.projectName);
|
|
136
|
+
/* raystack.optimus.core.v1beta1.NamespaceSpecification namespace = 2; */
|
|
137
|
+
if (message.namespace)
|
|
138
|
+
NamespaceSpecification.internalBinaryWrite(message.namespace, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
139
|
+
let u = options.writeUnknownFields;
|
|
140
|
+
if (u !== false)
|
|
141
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
142
|
+
return writer;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.RegisterProjectNamespaceRequest
|
|
147
|
+
*/
|
|
148
|
+
export const RegisterProjectNamespaceRequest = new RegisterProjectNamespaceRequest$Type();
|
|
149
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
150
|
+
class RegisterProjectNamespaceResponse$Type extends MessageType<RegisterProjectNamespaceResponse> {
|
|
151
|
+
constructor() {
|
|
152
|
+
super("raystack.optimus.core.v1beta1.RegisterProjectNamespaceResponse", [
|
|
153
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
154
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
155
|
+
]);
|
|
156
|
+
}
|
|
157
|
+
create(value?: PartialMessage<RegisterProjectNamespaceResponse>): RegisterProjectNamespaceResponse {
|
|
158
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
159
|
+
message.success = false;
|
|
160
|
+
message.message = "";
|
|
161
|
+
if (value !== undefined)
|
|
162
|
+
reflectionMergePartial<RegisterProjectNamespaceResponse>(this, message, value);
|
|
163
|
+
return message;
|
|
164
|
+
}
|
|
165
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterProjectNamespaceResponse): RegisterProjectNamespaceResponse {
|
|
166
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
167
|
+
while (reader.pos < end) {
|
|
168
|
+
let [fieldNo, wireType] = reader.tag();
|
|
169
|
+
switch (fieldNo) {
|
|
170
|
+
case /* bool success */ 1:
|
|
171
|
+
message.success = reader.bool();
|
|
172
|
+
break;
|
|
173
|
+
case /* string message */ 2:
|
|
174
|
+
message.message = reader.string();
|
|
175
|
+
break;
|
|
176
|
+
default:
|
|
177
|
+
let u = options.readUnknownField;
|
|
178
|
+
if (u === "throw")
|
|
179
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
180
|
+
let d = reader.skip(wireType);
|
|
181
|
+
if (u !== false)
|
|
182
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
}
|
|
187
|
+
internalBinaryWrite(message: RegisterProjectNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
188
|
+
/* bool success = 1; */
|
|
189
|
+
if (message.success !== false)
|
|
190
|
+
writer.tag(1, WireType.Varint).bool(message.success);
|
|
191
|
+
/* string message = 2; */
|
|
192
|
+
if (message.message !== "")
|
|
193
|
+
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
|
194
|
+
let u = options.writeUnknownFields;
|
|
195
|
+
if (u !== false)
|
|
196
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
197
|
+
return writer;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.RegisterProjectNamespaceResponse
|
|
202
|
+
*/
|
|
203
|
+
export const RegisterProjectNamespaceResponse = new RegisterProjectNamespaceResponse$Type();
|
|
204
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
205
|
+
class ListProjectNamespacesRequest$Type extends MessageType<ListProjectNamespacesRequest> {
|
|
206
|
+
constructor() {
|
|
207
|
+
super("raystack.optimus.core.v1beta1.ListProjectNamespacesRequest", [
|
|
208
|
+
{ no: 1, name: "project_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
209
|
+
]);
|
|
210
|
+
}
|
|
211
|
+
create(value?: PartialMessage<ListProjectNamespacesRequest>): ListProjectNamespacesRequest {
|
|
212
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
213
|
+
message.projectName = "";
|
|
214
|
+
if (value !== undefined)
|
|
215
|
+
reflectionMergePartial<ListProjectNamespacesRequest>(this, message, value);
|
|
216
|
+
return message;
|
|
217
|
+
}
|
|
218
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectNamespacesRequest): ListProjectNamespacesRequest {
|
|
219
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
220
|
+
while (reader.pos < end) {
|
|
221
|
+
let [fieldNo, wireType] = reader.tag();
|
|
222
|
+
switch (fieldNo) {
|
|
223
|
+
case /* string project_name */ 1:
|
|
224
|
+
message.projectName = reader.string();
|
|
225
|
+
break;
|
|
226
|
+
default:
|
|
227
|
+
let u = options.readUnknownField;
|
|
228
|
+
if (u === "throw")
|
|
229
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
230
|
+
let d = reader.skip(wireType);
|
|
231
|
+
if (u !== false)
|
|
232
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return message;
|
|
236
|
+
}
|
|
237
|
+
internalBinaryWrite(message: ListProjectNamespacesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
238
|
+
/* string project_name = 1; */
|
|
239
|
+
if (message.projectName !== "")
|
|
240
|
+
writer.tag(1, WireType.LengthDelimited).string(message.projectName);
|
|
241
|
+
let u = options.writeUnknownFields;
|
|
242
|
+
if (u !== false)
|
|
243
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
244
|
+
return writer;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.ListProjectNamespacesRequest
|
|
249
|
+
*/
|
|
250
|
+
export const ListProjectNamespacesRequest = new ListProjectNamespacesRequest$Type();
|
|
251
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
252
|
+
class ListProjectNamespacesResponse$Type extends MessageType<ListProjectNamespacesResponse> {
|
|
253
|
+
constructor() {
|
|
254
|
+
super("raystack.optimus.core.v1beta1.ListProjectNamespacesResponse", [
|
|
255
|
+
{ no: 1, name: "namespaces", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NamespaceSpecification }
|
|
256
|
+
]);
|
|
257
|
+
}
|
|
258
|
+
create(value?: PartialMessage<ListProjectNamespacesResponse>): ListProjectNamespacesResponse {
|
|
259
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
260
|
+
message.namespaces = [];
|
|
261
|
+
if (value !== undefined)
|
|
262
|
+
reflectionMergePartial<ListProjectNamespacesResponse>(this, message, value);
|
|
263
|
+
return message;
|
|
264
|
+
}
|
|
265
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectNamespacesResponse): ListProjectNamespacesResponse {
|
|
266
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
267
|
+
while (reader.pos < end) {
|
|
268
|
+
let [fieldNo, wireType] = reader.tag();
|
|
269
|
+
switch (fieldNo) {
|
|
270
|
+
case /* repeated raystack.optimus.core.v1beta1.NamespaceSpecification namespaces */ 1:
|
|
271
|
+
message.namespaces.push(NamespaceSpecification.internalBinaryRead(reader, reader.uint32(), options));
|
|
272
|
+
break;
|
|
273
|
+
default:
|
|
274
|
+
let u = options.readUnknownField;
|
|
275
|
+
if (u === "throw")
|
|
276
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
277
|
+
let d = reader.skip(wireType);
|
|
278
|
+
if (u !== false)
|
|
279
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return message;
|
|
283
|
+
}
|
|
284
|
+
internalBinaryWrite(message: ListProjectNamespacesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
285
|
+
/* repeated raystack.optimus.core.v1beta1.NamespaceSpecification namespaces = 1; */
|
|
286
|
+
for (let i = 0; i < message.namespaces.length; i++)
|
|
287
|
+
NamespaceSpecification.internalBinaryWrite(message.namespaces[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
288
|
+
let u = options.writeUnknownFields;
|
|
289
|
+
if (u !== false)
|
|
290
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
291
|
+
return writer;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.ListProjectNamespacesResponse
|
|
296
|
+
*/
|
|
297
|
+
export const ListProjectNamespacesResponse = new ListProjectNamespacesResponse$Type();
|
|
298
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
299
|
+
class GetNamespaceRequest$Type extends MessageType<GetNamespaceRequest> {
|
|
300
|
+
constructor() {
|
|
301
|
+
super("raystack.optimus.core.v1beta1.GetNamespaceRequest", [
|
|
302
|
+
{ no: 1, name: "project_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
303
|
+
{ no: 2, name: "namespace_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
304
|
+
]);
|
|
305
|
+
}
|
|
306
|
+
create(value?: PartialMessage<GetNamespaceRequest>): GetNamespaceRequest {
|
|
307
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
308
|
+
message.projectName = "";
|
|
309
|
+
message.namespaceName = "";
|
|
310
|
+
if (value !== undefined)
|
|
311
|
+
reflectionMergePartial<GetNamespaceRequest>(this, message, value);
|
|
312
|
+
return message;
|
|
313
|
+
}
|
|
314
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetNamespaceRequest): GetNamespaceRequest {
|
|
315
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
316
|
+
while (reader.pos < end) {
|
|
317
|
+
let [fieldNo, wireType] = reader.tag();
|
|
318
|
+
switch (fieldNo) {
|
|
319
|
+
case /* string project_name */ 1:
|
|
320
|
+
message.projectName = reader.string();
|
|
321
|
+
break;
|
|
322
|
+
case /* string namespace_name */ 2:
|
|
323
|
+
message.namespaceName = reader.string();
|
|
324
|
+
break;
|
|
325
|
+
default:
|
|
326
|
+
let u = options.readUnknownField;
|
|
327
|
+
if (u === "throw")
|
|
328
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
329
|
+
let d = reader.skip(wireType);
|
|
330
|
+
if (u !== false)
|
|
331
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return message;
|
|
335
|
+
}
|
|
336
|
+
internalBinaryWrite(message: GetNamespaceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
337
|
+
/* string project_name = 1; */
|
|
338
|
+
if (message.projectName !== "")
|
|
339
|
+
writer.tag(1, WireType.LengthDelimited).string(message.projectName);
|
|
340
|
+
/* string namespace_name = 2; */
|
|
341
|
+
if (message.namespaceName !== "")
|
|
342
|
+
writer.tag(2, WireType.LengthDelimited).string(message.namespaceName);
|
|
343
|
+
let u = options.writeUnknownFields;
|
|
344
|
+
if (u !== false)
|
|
345
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
346
|
+
return writer;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.GetNamespaceRequest
|
|
351
|
+
*/
|
|
352
|
+
export const GetNamespaceRequest = new GetNamespaceRequest$Type();
|
|
353
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
354
|
+
class GetNamespaceResponse$Type extends MessageType<GetNamespaceResponse> {
|
|
355
|
+
constructor() {
|
|
356
|
+
super("raystack.optimus.core.v1beta1.GetNamespaceResponse", [
|
|
357
|
+
{ no: 1, name: "namespace", kind: "message", T: () => NamespaceSpecification }
|
|
358
|
+
]);
|
|
359
|
+
}
|
|
360
|
+
create(value?: PartialMessage<GetNamespaceResponse>): GetNamespaceResponse {
|
|
361
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
362
|
+
if (value !== undefined)
|
|
363
|
+
reflectionMergePartial<GetNamespaceResponse>(this, message, value);
|
|
364
|
+
return message;
|
|
365
|
+
}
|
|
366
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetNamespaceResponse): GetNamespaceResponse {
|
|
367
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
368
|
+
while (reader.pos < end) {
|
|
369
|
+
let [fieldNo, wireType] = reader.tag();
|
|
370
|
+
switch (fieldNo) {
|
|
371
|
+
case /* raystack.optimus.core.v1beta1.NamespaceSpecification namespace */ 1:
|
|
372
|
+
message.namespace = NamespaceSpecification.internalBinaryRead(reader, reader.uint32(), options, message.namespace);
|
|
373
|
+
break;
|
|
374
|
+
default:
|
|
375
|
+
let u = options.readUnknownField;
|
|
376
|
+
if (u === "throw")
|
|
377
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
378
|
+
let d = reader.skip(wireType);
|
|
379
|
+
if (u !== false)
|
|
380
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return message;
|
|
384
|
+
}
|
|
385
|
+
internalBinaryWrite(message: GetNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
386
|
+
/* raystack.optimus.core.v1beta1.NamespaceSpecification namespace = 1; */
|
|
387
|
+
if (message.namespace)
|
|
388
|
+
NamespaceSpecification.internalBinaryWrite(message.namespace, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
389
|
+
let u = options.writeUnknownFields;
|
|
390
|
+
if (u !== false)
|
|
391
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
392
|
+
return writer;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.GetNamespaceResponse
|
|
397
|
+
*/
|
|
398
|
+
export const GetNamespaceResponse = new GetNamespaceResponse$Type();
|
|
399
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
400
|
+
class NamespaceSpecification$Type extends MessageType<NamespaceSpecification> {
|
|
401
|
+
constructor() {
|
|
402
|
+
super("raystack.optimus.core.v1beta1.NamespaceSpecification", [
|
|
403
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
404
|
+
{ no: 2, name: "config", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
405
|
+
]);
|
|
406
|
+
}
|
|
407
|
+
create(value?: PartialMessage<NamespaceSpecification>): NamespaceSpecification {
|
|
408
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
409
|
+
message.name = "";
|
|
410
|
+
message.config = {};
|
|
411
|
+
if (value !== undefined)
|
|
412
|
+
reflectionMergePartial<NamespaceSpecification>(this, message, value);
|
|
413
|
+
return message;
|
|
414
|
+
}
|
|
415
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NamespaceSpecification): NamespaceSpecification {
|
|
416
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
417
|
+
while (reader.pos < end) {
|
|
418
|
+
let [fieldNo, wireType] = reader.tag();
|
|
419
|
+
switch (fieldNo) {
|
|
420
|
+
case /* string name */ 1:
|
|
421
|
+
message.name = reader.string();
|
|
422
|
+
break;
|
|
423
|
+
case /* map<string, string> config */ 2:
|
|
424
|
+
this.binaryReadMap2(message.config, reader, options);
|
|
425
|
+
break;
|
|
426
|
+
default:
|
|
427
|
+
let u = options.readUnknownField;
|
|
428
|
+
if (u === "throw")
|
|
429
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
430
|
+
let d = reader.skip(wireType);
|
|
431
|
+
if (u !== false)
|
|
432
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return message;
|
|
436
|
+
}
|
|
437
|
+
private binaryReadMap2(map: NamespaceSpecification["config"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
438
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof NamespaceSpecification["config"] | undefined, val: NamespaceSpecification["config"][any] | undefined;
|
|
439
|
+
while (reader.pos < end) {
|
|
440
|
+
let [fieldNo, wireType] = reader.tag();
|
|
441
|
+
switch (fieldNo) {
|
|
442
|
+
case 1:
|
|
443
|
+
key = reader.string();
|
|
444
|
+
break;
|
|
445
|
+
case 2:
|
|
446
|
+
val = reader.string();
|
|
447
|
+
break;
|
|
448
|
+
default: throw new globalThis.Error("unknown map entry field for raystack.optimus.core.v1beta1.NamespaceSpecification.config");
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
map[key ?? ""] = val ?? "";
|
|
452
|
+
}
|
|
453
|
+
internalBinaryWrite(message: NamespaceSpecification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
454
|
+
/* string name = 1; */
|
|
455
|
+
if (message.name !== "")
|
|
456
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
457
|
+
/* map<string, string> config = 2; */
|
|
458
|
+
for (let k of globalThis.Object.keys(message.config))
|
|
459
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.config[k]).join();
|
|
460
|
+
let u = options.writeUnknownFields;
|
|
461
|
+
if (u !== false)
|
|
462
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
463
|
+
return writer;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* @generated MessageType for protobuf message raystack.optimus.core.v1beta1.NamespaceSpecification
|
|
468
|
+
*/
|
|
469
|
+
export const NamespaceSpecification = new NamespaceSpecification$Type();
|
|
470
|
+
/**
|
|
471
|
+
* @generated ServiceType for protobuf service raystack.optimus.core.v1beta1.NamespaceService
|
|
472
|
+
*/
|
|
473
|
+
export const NamespaceService = new ServiceType("raystack.optimus.core.v1beta1.NamespaceService", [
|
|
474
|
+
{ name: "RegisterProjectNamespace", options: { "google.api.http": { post: "/v1beta1/project/{project_name}/namespace", body: "*" } }, I: RegisterProjectNamespaceRequest, O: RegisterProjectNamespaceResponse },
|
|
475
|
+
{ name: "ListProjectNamespaces", options: { "google.api.http": { get: "/v1beta1/project/{project_name}/namespace" } }, I: ListProjectNamespacesRequest, O: ListProjectNamespacesResponse },
|
|
476
|
+
{ name: "GetNamespace", options: { "google.api.http": { get: "/v1beta1/project/{project_name}/namespace/{namespace_name}" } }, I: GetNamespaceRequest, O: GetNamespaceResponse }
|
|
477
|
+
]);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file raystack/optimus/core/v1beta1/namespace.proto (package raystack.optimus.core.v1beta1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetNamespaceRequest, GetNamespaceResponse, ListProjectNamespacesRequest, ListProjectNamespacesResponse, RegisterProjectNamespaceRequest, RegisterProjectNamespaceResponse } from "./namespace_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service raystack.optimus.core.v1beta1.NamespaceService
|
|
11
|
+
*/
|
|
12
|
+
export const NamespaceService = {
|
|
13
|
+
typeName: "raystack.optimus.core.v1beta1.NamespaceService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* RegisterProjectNamespace creates a new namespace for a project
|
|
17
|
+
*
|
|
18
|
+
* @generated from rpc raystack.optimus.core.v1beta1.NamespaceService.RegisterProjectNamespace
|
|
19
|
+
*/
|
|
20
|
+
registerProjectNamespace: {
|
|
21
|
+
name: "RegisterProjectNamespace",
|
|
22
|
+
I: RegisterProjectNamespaceRequest,
|
|
23
|
+
O: RegisterProjectNamespaceResponse,
|
|
24
|
+
kind: MethodKind.Unary,
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* ListProjectNamespaces returns list of namespaces of a project
|
|
28
|
+
*
|
|
29
|
+
* @generated from rpc raystack.optimus.core.v1beta1.NamespaceService.ListProjectNamespaces
|
|
30
|
+
*/
|
|
31
|
+
listProjectNamespaces: {
|
|
32
|
+
name: "ListProjectNamespaces",
|
|
33
|
+
I: ListProjectNamespacesRequest,
|
|
34
|
+
O: ListProjectNamespacesResponse,
|
|
35
|
+
kind: MethodKind.Unary,
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* GetNamespace returns namespace details based on project_name and namespace_name
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc raystack.optimus.core.v1beta1.NamespaceService.GetNamespace
|
|
41
|
+
*/
|
|
42
|
+
getNamespace: {
|
|
43
|
+
name: "GetNamespace",
|
|
44
|
+
I: GetNamespaceRequest,
|
|
45
|
+
O: GetNamespaceResponse,
|
|
46
|
+
kind: MethodKind.Unary,
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
} as const;
|
|
50
|
+
|