@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,4345 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/frontier/v1beta1/models.proto (package raystack.frontier.v1beta1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message raystack.frontier.v1beta1.User
|
|
11
|
+
*/
|
|
12
|
+
export class User extends Message<User> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string id = 1;
|
|
15
|
+
*/
|
|
16
|
+
id = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* can either be empty or must start with a character
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string name = 2;
|
|
22
|
+
*/
|
|
23
|
+
name = "";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string title = 3;
|
|
27
|
+
*/
|
|
28
|
+
title = "";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: string email = 4;
|
|
32
|
+
*/
|
|
33
|
+
email = "";
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: google.protobuf.Struct metadata = 5;
|
|
37
|
+
*/
|
|
38
|
+
metadata?: Struct;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
42
|
+
*/
|
|
43
|
+
createdAt?: Timestamp;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
47
|
+
*/
|
|
48
|
+
updatedAt?: Timestamp;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string state = 8;
|
|
52
|
+
*/
|
|
53
|
+
state = "";
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string avatar = 9;
|
|
57
|
+
*/
|
|
58
|
+
avatar = "";
|
|
59
|
+
|
|
60
|
+
constructor(data?: PartialMessage<User>) {
|
|
61
|
+
super();
|
|
62
|
+
proto3.util.initPartial(data, this);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
66
|
+
static readonly typeName = "raystack.frontier.v1beta1.User";
|
|
67
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
68
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
69
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
70
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 4, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct },
|
|
73
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
74
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
75
|
+
{ no: 8, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
76
|
+
{ no: 9, name: "avatar", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
77
|
+
]);
|
|
78
|
+
|
|
79
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
|
|
80
|
+
return new User().fromBinary(bytes, options);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
|
|
84
|
+
return new User().fromJson(jsonValue, options);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
|
|
88
|
+
return new User().fromJsonString(jsonString, options);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
|
|
92
|
+
return proto3.util.equals(User, a, b);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message raystack.frontier.v1beta1.ServiceUser
|
|
98
|
+
*/
|
|
99
|
+
export class ServiceUser extends Message<ServiceUser> {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: string id = 1;
|
|
102
|
+
*/
|
|
103
|
+
id = "";
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string title = 3;
|
|
107
|
+
*/
|
|
108
|
+
title = "";
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: google.protobuf.Struct metadata = 4;
|
|
112
|
+
*/
|
|
113
|
+
metadata?: Struct;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
117
|
+
*/
|
|
118
|
+
createdAt?: Timestamp;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 6;
|
|
122
|
+
*/
|
|
123
|
+
updatedAt?: Timestamp;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string state = 7;
|
|
127
|
+
*/
|
|
128
|
+
state = "";
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string org_id = 8;
|
|
132
|
+
*/
|
|
133
|
+
orgId = "";
|
|
134
|
+
|
|
135
|
+
constructor(data?: PartialMessage<ServiceUser>) {
|
|
136
|
+
super();
|
|
137
|
+
proto3.util.initPartial(data, this);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
141
|
+
static readonly typeName = "raystack.frontier.v1beta1.ServiceUser";
|
|
142
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
143
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
144
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
145
|
+
{ no: 4, name: "metadata", kind: "message", T: Struct },
|
|
146
|
+
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
147
|
+
{ no: 6, name: "updated_at", kind: "message", T: Timestamp },
|
|
148
|
+
{ no: 7, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
149
|
+
{ no: 8, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
150
|
+
]);
|
|
151
|
+
|
|
152
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceUser {
|
|
153
|
+
return new ServiceUser().fromBinary(bytes, options);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceUser {
|
|
157
|
+
return new ServiceUser().fromJson(jsonValue, options);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceUser {
|
|
161
|
+
return new ServiceUser().fromJsonString(jsonString, options);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static equals(a: ServiceUser | PlainMessage<ServiceUser> | undefined, b: ServiceUser | PlainMessage<ServiceUser> | undefined): boolean {
|
|
165
|
+
return proto3.util.equals(ServiceUser, a, b);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from message raystack.frontier.v1beta1.Group
|
|
171
|
+
*/
|
|
172
|
+
export class Group extends Message<Group> {
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: string id = 1;
|
|
175
|
+
*/
|
|
176
|
+
id = "";
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: string name = 2;
|
|
180
|
+
*/
|
|
181
|
+
name = "";
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string title = 3;
|
|
185
|
+
*/
|
|
186
|
+
title = "";
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: string org_id = 4;
|
|
190
|
+
*/
|
|
191
|
+
orgId = "";
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: google.protobuf.Struct metadata = 5;
|
|
195
|
+
*/
|
|
196
|
+
metadata?: Struct;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
200
|
+
*/
|
|
201
|
+
createdAt?: Timestamp;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
205
|
+
*/
|
|
206
|
+
updatedAt?: Timestamp;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: repeated raystack.frontier.v1beta1.User users = 10;
|
|
210
|
+
*/
|
|
211
|
+
users: User[] = [];
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @generated from field: int32 members_count = 8;
|
|
215
|
+
*/
|
|
216
|
+
membersCount = 0;
|
|
217
|
+
|
|
218
|
+
constructor(data?: PartialMessage<Group>) {
|
|
219
|
+
super();
|
|
220
|
+
proto3.util.initPartial(data, this);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
224
|
+
static readonly typeName = "raystack.frontier.v1beta1.Group";
|
|
225
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
226
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
227
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
228
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
229
|
+
{ no: 4, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
230
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct },
|
|
231
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
232
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
233
|
+
{ no: 10, name: "users", kind: "message", T: User, repeated: true },
|
|
234
|
+
{ no: 8, name: "members_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
235
|
+
]);
|
|
236
|
+
|
|
237
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Group {
|
|
238
|
+
return new Group().fromBinary(bytes, options);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Group {
|
|
242
|
+
return new Group().fromJson(jsonValue, options);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Group {
|
|
246
|
+
return new Group().fromJsonString(jsonString, options);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
static equals(a: Group | PlainMessage<Group> | undefined, b: Group | PlainMessage<Group> | undefined): boolean {
|
|
250
|
+
return proto3.util.equals(Group, a, b);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @generated from message raystack.frontier.v1beta1.Role
|
|
256
|
+
*/
|
|
257
|
+
export class Role extends Message<Role> {
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: string id = 1;
|
|
260
|
+
*/
|
|
261
|
+
id = "";
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: string name = 2;
|
|
265
|
+
*/
|
|
266
|
+
name = "";
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: repeated string permissions = 3;
|
|
270
|
+
*/
|
|
271
|
+
permissions: string[] = [];
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: string title = 4;
|
|
275
|
+
*/
|
|
276
|
+
title = "";
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @generated from field: google.protobuf.Struct metadata = 5;
|
|
280
|
+
*/
|
|
281
|
+
metadata?: Struct;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
285
|
+
*/
|
|
286
|
+
createdAt?: Timestamp;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
290
|
+
*/
|
|
291
|
+
updatedAt?: Timestamp;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: string org_id = 9;
|
|
295
|
+
*/
|
|
296
|
+
orgId = "";
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: string state = 10;
|
|
300
|
+
*/
|
|
301
|
+
state = "";
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: repeated string scopes = 11;
|
|
305
|
+
*/
|
|
306
|
+
scopes: string[] = [];
|
|
307
|
+
|
|
308
|
+
constructor(data?: PartialMessage<Role>) {
|
|
309
|
+
super();
|
|
310
|
+
proto3.util.initPartial(data, this);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
314
|
+
static readonly typeName = "raystack.frontier.v1beta1.Role";
|
|
315
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
316
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
317
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
318
|
+
{ no: 3, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
319
|
+
{ no: 4, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
320
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct },
|
|
321
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
322
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
323
|
+
{ no: 9, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
324
|
+
{ no: 10, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
325
|
+
{ no: 11, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
326
|
+
]);
|
|
327
|
+
|
|
328
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Role {
|
|
329
|
+
return new Role().fromBinary(bytes, options);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Role {
|
|
333
|
+
return new Role().fromJson(jsonValue, options);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Role {
|
|
337
|
+
return new Role().fromJsonString(jsonString, options);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
static equals(a: Role | PlainMessage<Role> | undefined, b: Role | PlainMessage<Role> | undefined): boolean {
|
|
341
|
+
return proto3.util.equals(Role, a, b);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @generated from message raystack.frontier.v1beta1.Organization
|
|
347
|
+
*/
|
|
348
|
+
export class Organization extends Message<Organization> {
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: string id = 1;
|
|
351
|
+
*/
|
|
352
|
+
id = "";
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string name = 2;
|
|
356
|
+
*/
|
|
357
|
+
name = "";
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: string title = 3;
|
|
361
|
+
*/
|
|
362
|
+
title = "";
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: google.protobuf.Struct metadata = 4;
|
|
366
|
+
*/
|
|
367
|
+
metadata?: Struct;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
371
|
+
*/
|
|
372
|
+
createdAt?: Timestamp;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 6;
|
|
376
|
+
*/
|
|
377
|
+
updatedAt?: Timestamp;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @generated from field: string state = 7;
|
|
381
|
+
*/
|
|
382
|
+
state = "";
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: string avatar = 8;
|
|
386
|
+
*/
|
|
387
|
+
avatar = "";
|
|
388
|
+
|
|
389
|
+
constructor(data?: PartialMessage<Organization>) {
|
|
390
|
+
super();
|
|
391
|
+
proto3.util.initPartial(data, this);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
395
|
+
static readonly typeName = "raystack.frontier.v1beta1.Organization";
|
|
396
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
397
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
398
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
399
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
400
|
+
{ no: 4, name: "metadata", kind: "message", T: Struct },
|
|
401
|
+
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
402
|
+
{ no: 6, name: "updated_at", kind: "message", T: Timestamp },
|
|
403
|
+
{ no: 7, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
404
|
+
{ no: 8, name: "avatar", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
405
|
+
]);
|
|
406
|
+
|
|
407
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Organization {
|
|
408
|
+
return new Organization().fromBinary(bytes, options);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Organization {
|
|
412
|
+
return new Organization().fromJson(jsonValue, options);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Organization {
|
|
416
|
+
return new Organization().fromJsonString(jsonString, options);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
static equals(a: Organization | PlainMessage<Organization> | undefined, b: Organization | PlainMessage<Organization> | undefined): boolean {
|
|
420
|
+
return proto3.util.equals(Organization, a, b);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @generated from message raystack.frontier.v1beta1.OrganizationKyc
|
|
426
|
+
*/
|
|
427
|
+
export class OrganizationKyc extends Message<OrganizationKyc> {
|
|
428
|
+
/**
|
|
429
|
+
* @generated from field: string org_id = 1;
|
|
430
|
+
*/
|
|
431
|
+
orgId = "";
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @generated from field: bool status = 2;
|
|
435
|
+
*/
|
|
436
|
+
status = false;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @generated from field: string link = 3;
|
|
440
|
+
*/
|
|
441
|
+
link = "";
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
445
|
+
*/
|
|
446
|
+
createdAt?: Timestamp;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 6;
|
|
450
|
+
*/
|
|
451
|
+
updatedAt?: Timestamp;
|
|
452
|
+
|
|
453
|
+
constructor(data?: PartialMessage<OrganizationKyc>) {
|
|
454
|
+
super();
|
|
455
|
+
proto3.util.initPartial(data, this);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
459
|
+
static readonly typeName = "raystack.frontier.v1beta1.OrganizationKyc";
|
|
460
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
461
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
462
|
+
{ no: 2, name: "status", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
463
|
+
{ no: 3, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
464
|
+
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
465
|
+
{ no: 6, name: "updated_at", kind: "message", T: Timestamp },
|
|
466
|
+
]);
|
|
467
|
+
|
|
468
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationKyc {
|
|
469
|
+
return new OrganizationKyc().fromBinary(bytes, options);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationKyc {
|
|
473
|
+
return new OrganizationKyc().fromJson(jsonValue, options);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationKyc {
|
|
477
|
+
return new OrganizationKyc().fromJsonString(jsonString, options);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
static equals(a: OrganizationKyc | PlainMessage<OrganizationKyc> | undefined, b: OrganizationKyc | PlainMessage<OrganizationKyc> | undefined): boolean {
|
|
481
|
+
return proto3.util.equals(OrganizationKyc, a, b);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @generated from message raystack.frontier.v1beta1.Project
|
|
487
|
+
*/
|
|
488
|
+
export class Project extends Message<Project> {
|
|
489
|
+
/**
|
|
490
|
+
* @generated from field: string id = 1;
|
|
491
|
+
*/
|
|
492
|
+
id = "";
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* @generated from field: string name = 2;
|
|
496
|
+
*/
|
|
497
|
+
name = "";
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @generated from field: string title = 3;
|
|
501
|
+
*/
|
|
502
|
+
title = "";
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* @generated from field: string org_id = 4;
|
|
506
|
+
*/
|
|
507
|
+
orgId = "";
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: google.protobuf.Struct metadata = 5;
|
|
511
|
+
*/
|
|
512
|
+
metadata?: Struct;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
516
|
+
*/
|
|
517
|
+
createdAt?: Timestamp;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
521
|
+
*/
|
|
522
|
+
updatedAt?: Timestamp;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @generated from field: int32 members_count = 8;
|
|
526
|
+
*/
|
|
527
|
+
membersCount = 0;
|
|
528
|
+
|
|
529
|
+
constructor(data?: PartialMessage<Project>) {
|
|
530
|
+
super();
|
|
531
|
+
proto3.util.initPartial(data, this);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
535
|
+
static readonly typeName = "raystack.frontier.v1beta1.Project";
|
|
536
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
537
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
538
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
539
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
540
|
+
{ no: 4, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
541
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct },
|
|
542
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
543
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
544
|
+
{ no: 8, name: "members_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
545
|
+
]);
|
|
546
|
+
|
|
547
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Project {
|
|
548
|
+
return new Project().fromBinary(bytes, options);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Project {
|
|
552
|
+
return new Project().fromJson(jsonValue, options);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Project {
|
|
556
|
+
return new Project().fromJsonString(jsonString, options);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
static equals(a: Project | PlainMessage<Project> | undefined, b: Project | PlainMessage<Project> | undefined): boolean {
|
|
560
|
+
return proto3.util.equals(Project, a, b);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @generated from message raystack.frontier.v1beta1.Domain
|
|
566
|
+
*/
|
|
567
|
+
export class Domain extends Message<Domain> {
|
|
568
|
+
/**
|
|
569
|
+
* @generated from field: string id = 1;
|
|
570
|
+
*/
|
|
571
|
+
id = "";
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* @generated from field: string name = 2;
|
|
575
|
+
*/
|
|
576
|
+
name = "";
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @generated from field: string org_id = 3;
|
|
580
|
+
*/
|
|
581
|
+
orgId = "";
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @generated from field: string token = 4;
|
|
585
|
+
*/
|
|
586
|
+
token = "";
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* @generated from field: string state = 5;
|
|
590
|
+
*/
|
|
591
|
+
state = "";
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
595
|
+
*/
|
|
596
|
+
createdAt?: Timestamp;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
600
|
+
*/
|
|
601
|
+
updatedAt?: Timestamp;
|
|
602
|
+
|
|
603
|
+
constructor(data?: PartialMessage<Domain>) {
|
|
604
|
+
super();
|
|
605
|
+
proto3.util.initPartial(data, this);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
609
|
+
static readonly typeName = "raystack.frontier.v1beta1.Domain";
|
|
610
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
611
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
612
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
613
|
+
{ no: 3, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
614
|
+
{ no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
615
|
+
{ no: 5, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
616
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
617
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
618
|
+
]);
|
|
619
|
+
|
|
620
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Domain {
|
|
621
|
+
return new Domain().fromBinary(bytes, options);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Domain {
|
|
625
|
+
return new Domain().fromJson(jsonValue, options);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Domain {
|
|
629
|
+
return new Domain().fromJsonString(jsonString, options);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
static equals(a: Domain | PlainMessage<Domain> | undefined, b: Domain | PlainMessage<Domain> | undefined): boolean {
|
|
633
|
+
return proto3.util.equals(Domain, a, b);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* @generated from message raystack.frontier.v1beta1.Policy
|
|
639
|
+
*/
|
|
640
|
+
export class Policy extends Message<Policy> {
|
|
641
|
+
/**
|
|
642
|
+
* @generated from field: string id = 1;
|
|
643
|
+
*/
|
|
644
|
+
id = "";
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: string title = 2;
|
|
648
|
+
*/
|
|
649
|
+
title = "";
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
653
|
+
*/
|
|
654
|
+
createdAt?: Timestamp;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 6;
|
|
658
|
+
*/
|
|
659
|
+
updatedAt?: Timestamp;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @generated from field: string role_id = 8;
|
|
663
|
+
*/
|
|
664
|
+
roleId = "";
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* namespace:uuid
|
|
668
|
+
*
|
|
669
|
+
* @generated from field: string resource = 10;
|
|
670
|
+
*/
|
|
671
|
+
resource = "";
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* namespace:uuid
|
|
675
|
+
*
|
|
676
|
+
* @generated from field: string principal = 11;
|
|
677
|
+
*/
|
|
678
|
+
principal = "";
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* @generated from field: google.protobuf.Struct metadata = 12;
|
|
682
|
+
*/
|
|
683
|
+
metadata?: Struct;
|
|
684
|
+
|
|
685
|
+
constructor(data?: PartialMessage<Policy>) {
|
|
686
|
+
super();
|
|
687
|
+
proto3.util.initPartial(data, this);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
691
|
+
static readonly typeName = "raystack.frontier.v1beta1.Policy";
|
|
692
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
693
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
694
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
695
|
+
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
696
|
+
{ no: 6, name: "updated_at", kind: "message", T: Timestamp },
|
|
697
|
+
{ no: 8, name: "role_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
698
|
+
{ no: 10, name: "resource", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
699
|
+
{ no: 11, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
700
|
+
{ no: 12, name: "metadata", kind: "message", T: Struct },
|
|
701
|
+
]);
|
|
702
|
+
|
|
703
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Policy {
|
|
704
|
+
return new Policy().fromBinary(bytes, options);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Policy {
|
|
708
|
+
return new Policy().fromJson(jsonValue, options);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Policy {
|
|
712
|
+
return new Policy().fromJsonString(jsonString, options);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
static equals(a: Policy | PlainMessage<Policy> | undefined, b: Policy | PlainMessage<Policy> | undefined): boolean {
|
|
716
|
+
return proto3.util.equals(Policy, a, b);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* @generated from message raystack.frontier.v1beta1.Relation
|
|
722
|
+
*/
|
|
723
|
+
export class Relation extends Message<Relation> {
|
|
724
|
+
/**
|
|
725
|
+
* @generated from field: string id = 1;
|
|
726
|
+
*/
|
|
727
|
+
id = "";
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
731
|
+
*/
|
|
732
|
+
createdAt?: Timestamp;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
736
|
+
*/
|
|
737
|
+
updatedAt?: Timestamp;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* @generated from field: string subject_sub_relation = 9;
|
|
741
|
+
*/
|
|
742
|
+
subjectSubRelation = "";
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* @generated from field: string relation = 10;
|
|
746
|
+
*/
|
|
747
|
+
relation = "";
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* objectnamespace:id
|
|
751
|
+
*
|
|
752
|
+
* @generated from field: string object = 11;
|
|
753
|
+
*/
|
|
754
|
+
object = "";
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* subjectnamespace:id
|
|
758
|
+
*
|
|
759
|
+
* @generated from field: string subject = 12;
|
|
760
|
+
*/
|
|
761
|
+
subject = "";
|
|
762
|
+
|
|
763
|
+
constructor(data?: PartialMessage<Relation>) {
|
|
764
|
+
super();
|
|
765
|
+
proto3.util.initPartial(data, this);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
769
|
+
static readonly typeName = "raystack.frontier.v1beta1.Relation";
|
|
770
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
771
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
772
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
773
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
774
|
+
{ no: 9, name: "subject_sub_relation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
775
|
+
{ no: 10, name: "relation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
776
|
+
{ no: 11, name: "object", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
777
|
+
{ no: 12, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
778
|
+
]);
|
|
779
|
+
|
|
780
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Relation {
|
|
781
|
+
return new Relation().fromBinary(bytes, options);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Relation {
|
|
785
|
+
return new Relation().fromJson(jsonValue, options);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Relation {
|
|
789
|
+
return new Relation().fromJsonString(jsonString, options);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
static equals(a: Relation | PlainMessage<Relation> | undefined, b: Relation | PlainMessage<Relation> | undefined): boolean {
|
|
793
|
+
return proto3.util.equals(Relation, a, b);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* @generated from message raystack.frontier.v1beta1.Permission
|
|
799
|
+
*/
|
|
800
|
+
export class Permission extends Message<Permission> {
|
|
801
|
+
/**
|
|
802
|
+
* @generated from field: string id = 1;
|
|
803
|
+
*/
|
|
804
|
+
id = "";
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* @generated from field: string name = 2 [deprecated = true];
|
|
808
|
+
* @deprecated
|
|
809
|
+
*/
|
|
810
|
+
name = "";
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* @generated from field: string title = 3;
|
|
814
|
+
*/
|
|
815
|
+
title = "";
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
819
|
+
*/
|
|
820
|
+
createdAt?: Timestamp;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 5;
|
|
824
|
+
*/
|
|
825
|
+
updatedAt?: Timestamp;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @generated from field: string namespace = 6 [deprecated = true];
|
|
829
|
+
* @deprecated
|
|
830
|
+
*/
|
|
831
|
+
namespace = "";
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* @generated from field: google.protobuf.Struct metadata = 7;
|
|
835
|
+
*/
|
|
836
|
+
metadata?: Struct;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* @generated from field: string key = 8;
|
|
840
|
+
*/
|
|
841
|
+
key = "";
|
|
842
|
+
|
|
843
|
+
constructor(data?: PartialMessage<Permission>) {
|
|
844
|
+
super();
|
|
845
|
+
proto3.util.initPartial(data, this);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
849
|
+
static readonly typeName = "raystack.frontier.v1beta1.Permission";
|
|
850
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
851
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
852
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
853
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
854
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
855
|
+
{ no: 5, name: "updated_at", kind: "message", T: Timestamp },
|
|
856
|
+
{ no: 6, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
857
|
+
{ no: 7, name: "metadata", kind: "message", T: Struct },
|
|
858
|
+
{ no: 8, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
859
|
+
]);
|
|
860
|
+
|
|
861
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Permission {
|
|
862
|
+
return new Permission().fromBinary(bytes, options);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Permission {
|
|
866
|
+
return new Permission().fromJson(jsonValue, options);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Permission {
|
|
870
|
+
return new Permission().fromJsonString(jsonString, options);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
static equals(a: Permission | PlainMessage<Permission> | undefined, b: Permission | PlainMessage<Permission> | undefined): boolean {
|
|
874
|
+
return proto3.util.equals(Permission, a, b);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* @generated from message raystack.frontier.v1beta1.Namespace
|
|
880
|
+
*/
|
|
881
|
+
export class Namespace extends Message<Namespace> {
|
|
882
|
+
/**
|
|
883
|
+
* @generated from field: string id = 1;
|
|
884
|
+
*/
|
|
885
|
+
id = "";
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* name could be in a format like: app/organization
|
|
889
|
+
*
|
|
890
|
+
* @generated from field: string name = 2;
|
|
891
|
+
*/
|
|
892
|
+
name = "";
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* @generated from field: google.protobuf.Struct metadata = 3;
|
|
896
|
+
*/
|
|
897
|
+
metadata?: Struct;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
901
|
+
*/
|
|
902
|
+
createdAt?: Timestamp;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
906
|
+
*/
|
|
907
|
+
updatedAt?: Timestamp;
|
|
908
|
+
|
|
909
|
+
constructor(data?: PartialMessage<Namespace>) {
|
|
910
|
+
super();
|
|
911
|
+
proto3.util.initPartial(data, this);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
915
|
+
static readonly typeName = "raystack.frontier.v1beta1.Namespace";
|
|
916
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
917
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
918
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
919
|
+
{ no: 3, name: "metadata", kind: "message", T: Struct },
|
|
920
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
921
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
922
|
+
]);
|
|
923
|
+
|
|
924
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Namespace {
|
|
925
|
+
return new Namespace().fromBinary(bytes, options);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Namespace {
|
|
929
|
+
return new Namespace().fromJson(jsonValue, options);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Namespace {
|
|
933
|
+
return new Namespace().fromJsonString(jsonString, options);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
static equals(a: Namespace | PlainMessage<Namespace> | undefined, b: Namespace | PlainMessage<Namespace> | undefined): boolean {
|
|
937
|
+
return proto3.util.equals(Namespace, a, b);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* @generated from message raystack.frontier.v1beta1.Resource
|
|
943
|
+
*/
|
|
944
|
+
export class Resource extends Message<Resource> {
|
|
945
|
+
/**
|
|
946
|
+
* @generated from field: string id = 1;
|
|
947
|
+
*/
|
|
948
|
+
id = "";
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* @generated from field: string name = 2;
|
|
952
|
+
*/
|
|
953
|
+
name = "";
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
957
|
+
*/
|
|
958
|
+
createdAt?: Timestamp;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
962
|
+
*/
|
|
963
|
+
updatedAt?: Timestamp;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* @generated from field: string urn = 9;
|
|
967
|
+
*/
|
|
968
|
+
urn = "";
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* @generated from field: string project_id = 10;
|
|
972
|
+
*/
|
|
973
|
+
projectId = "";
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* @generated from field: string namespace = 11;
|
|
977
|
+
*/
|
|
978
|
+
namespace = "";
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* @generated from field: string principal = 12;
|
|
982
|
+
*/
|
|
983
|
+
principal = "";
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @generated from field: google.protobuf.Struct metadata = 13;
|
|
987
|
+
*/
|
|
988
|
+
metadata?: Struct;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* @generated from field: string title = 14;
|
|
992
|
+
*/
|
|
993
|
+
title = "";
|
|
994
|
+
|
|
995
|
+
constructor(data?: PartialMessage<Resource>) {
|
|
996
|
+
super();
|
|
997
|
+
proto3.util.initPartial(data, this);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1001
|
+
static readonly typeName = "raystack.frontier.v1beta1.Resource";
|
|
1002
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1003
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1004
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1005
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
1006
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
1007
|
+
{ no: 9, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1008
|
+
{ no: 10, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1009
|
+
{ no: 11, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1010
|
+
{ no: 12, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1011
|
+
{ no: 13, name: "metadata", kind: "message", T: Struct },
|
|
1012
|
+
{ no: 14, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1013
|
+
]);
|
|
1014
|
+
|
|
1015
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Resource {
|
|
1016
|
+
return new Resource().fromBinary(bytes, options);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Resource {
|
|
1020
|
+
return new Resource().fromJson(jsonValue, options);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Resource {
|
|
1024
|
+
return new Resource().fromJsonString(jsonString, options);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
static equals(a: Resource | PlainMessage<Resource> | undefined, b: Resource | PlainMessage<Resource> | undefined): boolean {
|
|
1028
|
+
return proto3.util.equals(Resource, a, b);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* @generated from message raystack.frontier.v1beta1.MetaSchema
|
|
1034
|
+
*/
|
|
1035
|
+
export class MetaSchema extends Message<MetaSchema> {
|
|
1036
|
+
/**
|
|
1037
|
+
* @generated from field: string id = 1;
|
|
1038
|
+
*/
|
|
1039
|
+
id = "";
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* @generated from field: string name = 2;
|
|
1043
|
+
*/
|
|
1044
|
+
name = "";
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* @generated from field: string schema = 3;
|
|
1048
|
+
*/
|
|
1049
|
+
schema = "";
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
1053
|
+
*/
|
|
1054
|
+
createdAt?: Timestamp;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 5;
|
|
1058
|
+
*/
|
|
1059
|
+
updatedAt?: Timestamp;
|
|
1060
|
+
|
|
1061
|
+
constructor(data?: PartialMessage<MetaSchema>) {
|
|
1062
|
+
super();
|
|
1063
|
+
proto3.util.initPartial(data, this);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1067
|
+
static readonly typeName = "raystack.frontier.v1beta1.MetaSchema";
|
|
1068
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1069
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1070
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1071
|
+
{ no: 3, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1072
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
1073
|
+
{ no: 5, name: "updated_at", kind: "message", T: Timestamp },
|
|
1074
|
+
]);
|
|
1075
|
+
|
|
1076
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetaSchema {
|
|
1077
|
+
return new MetaSchema().fromBinary(bytes, options);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetaSchema {
|
|
1081
|
+
return new MetaSchema().fromJson(jsonValue, options);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetaSchema {
|
|
1085
|
+
return new MetaSchema().fromJsonString(jsonString, options);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
static equals(a: MetaSchema | PlainMessage<MetaSchema> | undefined, b: MetaSchema | PlainMessage<MetaSchema> | undefined): boolean {
|
|
1089
|
+
return proto3.util.equals(MetaSchema, a, b);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated from message raystack.frontier.v1beta1.Invitation
|
|
1095
|
+
*/
|
|
1096
|
+
export class Invitation extends Message<Invitation> {
|
|
1097
|
+
/**
|
|
1098
|
+
* @generated from field: string id = 1;
|
|
1099
|
+
*/
|
|
1100
|
+
id = "";
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @generated from field: string user_id = 2;
|
|
1104
|
+
*/
|
|
1105
|
+
userId = "";
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* @generated from field: string org_id = 3;
|
|
1109
|
+
*/
|
|
1110
|
+
orgId = "";
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* @generated from field: repeated string group_ids = 4;
|
|
1114
|
+
*/
|
|
1115
|
+
groupIds: string[] = [];
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* @generated from field: google.protobuf.Struct metadata = 5;
|
|
1119
|
+
*/
|
|
1120
|
+
metadata?: Struct;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
1124
|
+
*/
|
|
1125
|
+
createdAt?: Timestamp;
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 7;
|
|
1129
|
+
*/
|
|
1130
|
+
expiresAt?: Timestamp;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* @generated from field: repeated string role_ids = 8;
|
|
1134
|
+
*/
|
|
1135
|
+
roleIds: string[] = [];
|
|
1136
|
+
|
|
1137
|
+
constructor(data?: PartialMessage<Invitation>) {
|
|
1138
|
+
super();
|
|
1139
|
+
proto3.util.initPartial(data, this);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1143
|
+
static readonly typeName = "raystack.frontier.v1beta1.Invitation";
|
|
1144
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1145
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1146
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1147
|
+
{ no: 3, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1148
|
+
{ no: 4, name: "group_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1149
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct },
|
|
1150
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
1151
|
+
{ no: 7, name: "expires_at", kind: "message", T: Timestamp },
|
|
1152
|
+
{ no: 8, name: "role_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1153
|
+
]);
|
|
1154
|
+
|
|
1155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invitation {
|
|
1156
|
+
return new Invitation().fromBinary(bytes, options);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invitation {
|
|
1160
|
+
return new Invitation().fromJson(jsonValue, options);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invitation {
|
|
1164
|
+
return new Invitation().fromJsonString(jsonString, options);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
static equals(a: Invitation | PlainMessage<Invitation> | undefined, b: Invitation | PlainMessage<Invitation> | undefined): boolean {
|
|
1168
|
+
return proto3.util.equals(Invitation, a, b);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* @generated from message raystack.frontier.v1beta1.ServiceUserJWK
|
|
1174
|
+
*/
|
|
1175
|
+
export class ServiceUserJWK extends Message<ServiceUserJWK> {
|
|
1176
|
+
/**
|
|
1177
|
+
* @generated from field: string id = 1;
|
|
1178
|
+
*/
|
|
1179
|
+
id = "";
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* @generated from field: string title = 2;
|
|
1183
|
+
*/
|
|
1184
|
+
title = "";
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated from field: string principal_id = 3;
|
|
1188
|
+
*/
|
|
1189
|
+
principalId = "";
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* @generated from field: string public_key = 4;
|
|
1193
|
+
*/
|
|
1194
|
+
publicKey = "";
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
1198
|
+
*/
|
|
1199
|
+
createdAt?: Timestamp;
|
|
1200
|
+
|
|
1201
|
+
constructor(data?: PartialMessage<ServiceUserJWK>) {
|
|
1202
|
+
super();
|
|
1203
|
+
proto3.util.initPartial(data, this);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1207
|
+
static readonly typeName = "raystack.frontier.v1beta1.ServiceUserJWK";
|
|
1208
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1209
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1210
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1211
|
+
{ no: 3, name: "principal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1212
|
+
{ no: 4, name: "public_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1213
|
+
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
1214
|
+
]);
|
|
1215
|
+
|
|
1216
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceUserJWK {
|
|
1217
|
+
return new ServiceUserJWK().fromBinary(bytes, options);
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceUserJWK {
|
|
1221
|
+
return new ServiceUserJWK().fromJson(jsonValue, options);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceUserJWK {
|
|
1225
|
+
return new ServiceUserJWK().fromJsonString(jsonString, options);
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
static equals(a: ServiceUserJWK | PlainMessage<ServiceUserJWK> | undefined, b: ServiceUserJWK | PlainMessage<ServiceUserJWK> | undefined): boolean {
|
|
1229
|
+
return proto3.util.equals(ServiceUserJWK, a, b);
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* @generated from message raystack.frontier.v1beta1.KeyCredential
|
|
1235
|
+
*/
|
|
1236
|
+
export class KeyCredential extends Message<KeyCredential> {
|
|
1237
|
+
/**
|
|
1238
|
+
* @generated from field: string type = 1;
|
|
1239
|
+
*/
|
|
1240
|
+
type = "";
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* @generated from field: string kid = 2;
|
|
1244
|
+
*/
|
|
1245
|
+
kid = "";
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* @generated from field: string principal_id = 3;
|
|
1249
|
+
*/
|
|
1250
|
+
principalId = "";
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* RSA private key as string
|
|
1254
|
+
*
|
|
1255
|
+
* @generated from field: string private_key = 4;
|
|
1256
|
+
*/
|
|
1257
|
+
privateKey = "";
|
|
1258
|
+
|
|
1259
|
+
constructor(data?: PartialMessage<KeyCredential>) {
|
|
1260
|
+
super();
|
|
1261
|
+
proto3.util.initPartial(data, this);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1265
|
+
static readonly typeName = "raystack.frontier.v1beta1.KeyCredential";
|
|
1266
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1267
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1268
|
+
{ no: 2, name: "kid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1269
|
+
{ no: 3, name: "principal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1270
|
+
{ no: 4, name: "private_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1271
|
+
]);
|
|
1272
|
+
|
|
1273
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyCredential {
|
|
1274
|
+
return new KeyCredential().fromBinary(bytes, options);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyCredential {
|
|
1278
|
+
return new KeyCredential().fromJson(jsonValue, options);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyCredential {
|
|
1282
|
+
return new KeyCredential().fromJsonString(jsonString, options);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
static equals(a: KeyCredential | PlainMessage<KeyCredential> | undefined, b: KeyCredential | PlainMessage<KeyCredential> | undefined): boolean {
|
|
1286
|
+
return proto3.util.equals(KeyCredential, a, b);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* @generated from message raystack.frontier.v1beta1.SecretCredential
|
|
1292
|
+
*/
|
|
1293
|
+
export class SecretCredential extends Message<SecretCredential> {
|
|
1294
|
+
/**
|
|
1295
|
+
* @generated from field: string id = 1;
|
|
1296
|
+
*/
|
|
1297
|
+
id = "";
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* @generated from field: string title = 2;
|
|
1301
|
+
*/
|
|
1302
|
+
title = "";
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* secret will only be returned once as part of the create process
|
|
1306
|
+
* this value is never persisted in the system so if lost, can't be recovered
|
|
1307
|
+
*
|
|
1308
|
+
* @generated from field: string secret = 3;
|
|
1309
|
+
*/
|
|
1310
|
+
secret = "";
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
1314
|
+
*/
|
|
1315
|
+
createdAt?: Timestamp;
|
|
1316
|
+
|
|
1317
|
+
constructor(data?: PartialMessage<SecretCredential>) {
|
|
1318
|
+
super();
|
|
1319
|
+
proto3.util.initPartial(data, this);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1323
|
+
static readonly typeName = "raystack.frontier.v1beta1.SecretCredential";
|
|
1324
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1325
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1326
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1327
|
+
{ no: 3, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1328
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
1329
|
+
]);
|
|
1330
|
+
|
|
1331
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecretCredential {
|
|
1332
|
+
return new SecretCredential().fromBinary(bytes, options);
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecretCredential {
|
|
1336
|
+
return new SecretCredential().fromJson(jsonValue, options);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecretCredential {
|
|
1340
|
+
return new SecretCredential().fromJsonString(jsonString, options);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
static equals(a: SecretCredential | PlainMessage<SecretCredential> | undefined, b: SecretCredential | PlainMessage<SecretCredential> | undefined): boolean {
|
|
1344
|
+
return proto3.util.equals(SecretCredential, a, b);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* @generated from message raystack.frontier.v1beta1.ServiceUserToken
|
|
1350
|
+
*/
|
|
1351
|
+
export class ServiceUserToken extends Message<ServiceUserToken> {
|
|
1352
|
+
/**
|
|
1353
|
+
* @generated from field: string id = 1;
|
|
1354
|
+
*/
|
|
1355
|
+
id = "";
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* @generated from field: string title = 2;
|
|
1359
|
+
*/
|
|
1360
|
+
title = "";
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* token will only be returned once as part of the create process
|
|
1364
|
+
* this value is never persisted in the system so if lost, can't be recovered
|
|
1365
|
+
*
|
|
1366
|
+
* @generated from field: string token = 3;
|
|
1367
|
+
*/
|
|
1368
|
+
token = "";
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
1372
|
+
*/
|
|
1373
|
+
createdAt?: Timestamp;
|
|
1374
|
+
|
|
1375
|
+
constructor(data?: PartialMessage<ServiceUserToken>) {
|
|
1376
|
+
super();
|
|
1377
|
+
proto3.util.initPartial(data, this);
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1381
|
+
static readonly typeName = "raystack.frontier.v1beta1.ServiceUserToken";
|
|
1382
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1383
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1384
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1385
|
+
{ no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1386
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
1387
|
+
]);
|
|
1388
|
+
|
|
1389
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceUserToken {
|
|
1390
|
+
return new ServiceUserToken().fromBinary(bytes, options);
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceUserToken {
|
|
1394
|
+
return new ServiceUserToken().fromJson(jsonValue, options);
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceUserToken {
|
|
1398
|
+
return new ServiceUserToken().fromJsonString(jsonString, options);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
static equals(a: ServiceUserToken | PlainMessage<ServiceUserToken> | undefined, b: ServiceUserToken | PlainMessage<ServiceUserToken> | undefined): boolean {
|
|
1402
|
+
return proto3.util.equals(ServiceUserToken, a, b);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* JSON Web Key as specified in RFC 7517
|
|
1408
|
+
*
|
|
1409
|
+
* @generated from message raystack.frontier.v1beta1.JSONWebKey
|
|
1410
|
+
*/
|
|
1411
|
+
export class JSONWebKey extends Message<JSONWebKey> {
|
|
1412
|
+
/**
|
|
1413
|
+
* Key Type.
|
|
1414
|
+
*
|
|
1415
|
+
* @generated from field: string kty = 1;
|
|
1416
|
+
*/
|
|
1417
|
+
kty = "";
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Algorithm.
|
|
1421
|
+
*
|
|
1422
|
+
* @generated from field: string alg = 2;
|
|
1423
|
+
*/
|
|
1424
|
+
alg = "";
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* Permitted uses for the public keys.
|
|
1428
|
+
*
|
|
1429
|
+
* @generated from field: string use = 3;
|
|
1430
|
+
*/
|
|
1431
|
+
use = "";
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Key ID.
|
|
1435
|
+
*
|
|
1436
|
+
* @generated from field: string kid = 4;
|
|
1437
|
+
*/
|
|
1438
|
+
kid = "";
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Used for RSA keys.
|
|
1442
|
+
*
|
|
1443
|
+
* @generated from field: string n = 5;
|
|
1444
|
+
*/
|
|
1445
|
+
n = "";
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Used for RSA keys.
|
|
1449
|
+
*
|
|
1450
|
+
* @generated from field: string e = 6;
|
|
1451
|
+
*/
|
|
1452
|
+
e = "";
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Used for ECDSA keys.
|
|
1456
|
+
*
|
|
1457
|
+
* @generated from field: string x = 7;
|
|
1458
|
+
*/
|
|
1459
|
+
x = "";
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* Used for ECDSA keys.
|
|
1463
|
+
*
|
|
1464
|
+
* @generated from field: string y = 8;
|
|
1465
|
+
*/
|
|
1466
|
+
y = "";
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Used for ECDSA keys.
|
|
1470
|
+
*
|
|
1471
|
+
* @generated from field: string crv = 9;
|
|
1472
|
+
*/
|
|
1473
|
+
crv = "";
|
|
1474
|
+
|
|
1475
|
+
constructor(data?: PartialMessage<JSONWebKey>) {
|
|
1476
|
+
super();
|
|
1477
|
+
proto3.util.initPartial(data, this);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1481
|
+
static readonly typeName = "raystack.frontier.v1beta1.JSONWebKey";
|
|
1482
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1483
|
+
{ no: 1, name: "kty", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1484
|
+
{ no: 2, name: "alg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1485
|
+
{ no: 3, name: "use", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1486
|
+
{ no: 4, name: "kid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1487
|
+
{ no: 5, name: "n", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1488
|
+
{ no: 6, name: "e", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1489
|
+
{ no: 7, name: "x", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1490
|
+
{ no: 8, name: "y", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1491
|
+
{ no: 9, name: "crv", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1492
|
+
]);
|
|
1493
|
+
|
|
1494
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JSONWebKey {
|
|
1495
|
+
return new JSONWebKey().fromBinary(bytes, options);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JSONWebKey {
|
|
1499
|
+
return new JSONWebKey().fromJson(jsonValue, options);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JSONWebKey {
|
|
1503
|
+
return new JSONWebKey().fromJsonString(jsonString, options);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
static equals(a: JSONWebKey | PlainMessage<JSONWebKey> | undefined, b: JSONWebKey | PlainMessage<JSONWebKey> | undefined): boolean {
|
|
1507
|
+
return proto3.util.equals(JSONWebKey, a, b);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* @generated from message raystack.frontier.v1beta1.AuditLogActor
|
|
1513
|
+
*/
|
|
1514
|
+
export class AuditLogActor extends Message<AuditLogActor> {
|
|
1515
|
+
/**
|
|
1516
|
+
* @generated from field: string id = 1;
|
|
1517
|
+
*/
|
|
1518
|
+
id = "";
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* @generated from field: string type = 2;
|
|
1522
|
+
*/
|
|
1523
|
+
type = "";
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* @generated from field: string name = 3;
|
|
1527
|
+
*/
|
|
1528
|
+
name = "";
|
|
1529
|
+
|
|
1530
|
+
constructor(data?: PartialMessage<AuditLogActor>) {
|
|
1531
|
+
super();
|
|
1532
|
+
proto3.util.initPartial(data, this);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1536
|
+
static readonly typeName = "raystack.frontier.v1beta1.AuditLogActor";
|
|
1537
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1538
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1539
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1540
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1541
|
+
]);
|
|
1542
|
+
|
|
1543
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuditLogActor {
|
|
1544
|
+
return new AuditLogActor().fromBinary(bytes, options);
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuditLogActor {
|
|
1548
|
+
return new AuditLogActor().fromJson(jsonValue, options);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuditLogActor {
|
|
1552
|
+
return new AuditLogActor().fromJsonString(jsonString, options);
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
static equals(a: AuditLogActor | PlainMessage<AuditLogActor> | undefined, b: AuditLogActor | PlainMessage<AuditLogActor> | undefined): boolean {
|
|
1556
|
+
return proto3.util.equals(AuditLogActor, a, b);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* @generated from message raystack.frontier.v1beta1.AuditLogTarget
|
|
1562
|
+
*/
|
|
1563
|
+
export class AuditLogTarget extends Message<AuditLogTarget> {
|
|
1564
|
+
/**
|
|
1565
|
+
* @generated from field: string id = 1;
|
|
1566
|
+
*/
|
|
1567
|
+
id = "";
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* @generated from field: string type = 2;
|
|
1571
|
+
*/
|
|
1572
|
+
type = "";
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* @generated from field: string name = 3;
|
|
1576
|
+
*/
|
|
1577
|
+
name = "";
|
|
1578
|
+
|
|
1579
|
+
constructor(data?: PartialMessage<AuditLogTarget>) {
|
|
1580
|
+
super();
|
|
1581
|
+
proto3.util.initPartial(data, this);
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1585
|
+
static readonly typeName = "raystack.frontier.v1beta1.AuditLogTarget";
|
|
1586
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1587
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1588
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1589
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1590
|
+
]);
|
|
1591
|
+
|
|
1592
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuditLogTarget {
|
|
1593
|
+
return new AuditLogTarget().fromBinary(bytes, options);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuditLogTarget {
|
|
1597
|
+
return new AuditLogTarget().fromJson(jsonValue, options);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuditLogTarget {
|
|
1601
|
+
return new AuditLogTarget().fromJsonString(jsonString, options);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
static equals(a: AuditLogTarget | PlainMessage<AuditLogTarget> | undefined, b: AuditLogTarget | PlainMessage<AuditLogTarget> | undefined): boolean {
|
|
1605
|
+
return proto3.util.equals(AuditLogTarget, a, b);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* @generated from message raystack.frontier.v1beta1.AuditLog
|
|
1611
|
+
*/
|
|
1612
|
+
export class AuditLog extends Message<AuditLog> {
|
|
1613
|
+
/**
|
|
1614
|
+
* A unique identifier of the audit log if not supplied will be autogenerated
|
|
1615
|
+
*
|
|
1616
|
+
* @generated from field: string id = 1;
|
|
1617
|
+
*/
|
|
1618
|
+
id = "";
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Source service generating the event
|
|
1622
|
+
*
|
|
1623
|
+
* @generated from field: string source = 2;
|
|
1624
|
+
*/
|
|
1625
|
+
source = "";
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Action performed, e.g. project.create, user.update, serviceuser.delete
|
|
1629
|
+
*
|
|
1630
|
+
* @generated from field: string action = 3;
|
|
1631
|
+
*/
|
|
1632
|
+
action = "";
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Actor performing the action
|
|
1636
|
+
*
|
|
1637
|
+
* @generated from field: raystack.frontier.v1beta1.AuditLogActor actor = 4;
|
|
1638
|
+
*/
|
|
1639
|
+
actor?: AuditLogActor;
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* Target of the action
|
|
1643
|
+
*
|
|
1644
|
+
* @generated from field: raystack.frontier.v1beta1.AuditLogTarget target = 5;
|
|
1645
|
+
*/
|
|
1646
|
+
target?: AuditLogTarget;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Context contains additional information about the event
|
|
1650
|
+
*
|
|
1651
|
+
* @generated from field: map<string, string> context = 6;
|
|
1652
|
+
*/
|
|
1653
|
+
context: { [key: string]: string } = {};
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* @generated from field: google.protobuf.Timestamp created_at = 20;
|
|
1657
|
+
*/
|
|
1658
|
+
createdAt?: Timestamp;
|
|
1659
|
+
|
|
1660
|
+
constructor(data?: PartialMessage<AuditLog>) {
|
|
1661
|
+
super();
|
|
1662
|
+
proto3.util.initPartial(data, this);
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1666
|
+
static readonly typeName = "raystack.frontier.v1beta1.AuditLog";
|
|
1667
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1668
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1669
|
+
{ no: 2, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1670
|
+
{ no: 3, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1671
|
+
{ no: 4, name: "actor", kind: "message", T: AuditLogActor },
|
|
1672
|
+
{ no: 5, name: "target", kind: "message", T: AuditLogTarget },
|
|
1673
|
+
{ no: 6, name: "context", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1674
|
+
{ no: 20, name: "created_at", kind: "message", T: Timestamp },
|
|
1675
|
+
]);
|
|
1676
|
+
|
|
1677
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuditLog {
|
|
1678
|
+
return new AuditLog().fromBinary(bytes, options);
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuditLog {
|
|
1682
|
+
return new AuditLog().fromJson(jsonValue, options);
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuditLog {
|
|
1686
|
+
return new AuditLog().fromJsonString(jsonString, options);
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
static equals(a: AuditLog | PlainMessage<AuditLog> | undefined, b: AuditLog | PlainMessage<AuditLog> | undefined): boolean {
|
|
1690
|
+
return proto3.util.equals(AuditLog, a, b);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* PreferenceTrait is a trait that can be used to add preferences to a resource
|
|
1696
|
+
* it explains what preferences are available for a resource
|
|
1697
|
+
*
|
|
1698
|
+
* @generated from message raystack.frontier.v1beta1.PreferenceTrait
|
|
1699
|
+
*/
|
|
1700
|
+
export class PreferenceTrait extends Message<PreferenceTrait> {
|
|
1701
|
+
/**
|
|
1702
|
+
* @generated from field: string resource_type = 1;
|
|
1703
|
+
*/
|
|
1704
|
+
resourceType = "";
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* @generated from field: string name = 2;
|
|
1708
|
+
*/
|
|
1709
|
+
name = "";
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* @generated from field: string title = 3;
|
|
1713
|
+
*/
|
|
1714
|
+
title = "";
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* @generated from field: string description = 4;
|
|
1718
|
+
*/
|
|
1719
|
+
description = "";
|
|
1720
|
+
|
|
1721
|
+
/**
|
|
1722
|
+
* @generated from field: string long_description = 5;
|
|
1723
|
+
*/
|
|
1724
|
+
longDescription = "";
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* @generated from field: string heading = 6;
|
|
1728
|
+
*/
|
|
1729
|
+
heading = "";
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* @generated from field: string sub_heading = 7;
|
|
1733
|
+
*/
|
|
1734
|
+
subHeading = "";
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* @generated from field: string breadcrumb = 8;
|
|
1738
|
+
*/
|
|
1739
|
+
breadcrumb = "";
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* @generated from field: string default = 9;
|
|
1743
|
+
*/
|
|
1744
|
+
default = "";
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* @generated from field: string input_hints = 19;
|
|
1748
|
+
*/
|
|
1749
|
+
inputHints = "";
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* @generated from oneof raystack.frontier.v1beta1.PreferenceTrait.input
|
|
1753
|
+
*/
|
|
1754
|
+
input: {
|
|
1755
|
+
/**
|
|
1756
|
+
* @generated from field: string text = 20;
|
|
1757
|
+
*/
|
|
1758
|
+
value: string;
|
|
1759
|
+
case: "text";
|
|
1760
|
+
} | {
|
|
1761
|
+
/**
|
|
1762
|
+
* @generated from field: string textarea = 21;
|
|
1763
|
+
*/
|
|
1764
|
+
value: string;
|
|
1765
|
+
case: "textarea";
|
|
1766
|
+
} | {
|
|
1767
|
+
/**
|
|
1768
|
+
* @generated from field: string select = 22;
|
|
1769
|
+
*/
|
|
1770
|
+
value: string;
|
|
1771
|
+
case: "select";
|
|
1772
|
+
} | {
|
|
1773
|
+
/**
|
|
1774
|
+
* @generated from field: string combobox = 23;
|
|
1775
|
+
*/
|
|
1776
|
+
value: string;
|
|
1777
|
+
case: "combobox";
|
|
1778
|
+
} | {
|
|
1779
|
+
/**
|
|
1780
|
+
* @generated from field: string checkbox = 24;
|
|
1781
|
+
*/
|
|
1782
|
+
value: string;
|
|
1783
|
+
case: "checkbox";
|
|
1784
|
+
} | {
|
|
1785
|
+
/**
|
|
1786
|
+
* @generated from field: string multiselect = 25;
|
|
1787
|
+
*/
|
|
1788
|
+
value: string;
|
|
1789
|
+
case: "multiselect";
|
|
1790
|
+
} | {
|
|
1791
|
+
/**
|
|
1792
|
+
* @generated from field: string number = 26;
|
|
1793
|
+
*/
|
|
1794
|
+
value: string;
|
|
1795
|
+
case: "number";
|
|
1796
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1797
|
+
|
|
1798
|
+
constructor(data?: PartialMessage<PreferenceTrait>) {
|
|
1799
|
+
super();
|
|
1800
|
+
proto3.util.initPartial(data, this);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1804
|
+
static readonly typeName = "raystack.frontier.v1beta1.PreferenceTrait";
|
|
1805
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1806
|
+
{ no: 1, name: "resource_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1807
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1808
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1809
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1810
|
+
{ no: 5, name: "long_description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1811
|
+
{ no: 6, name: "heading", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1812
|
+
{ no: 7, name: "sub_heading", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1813
|
+
{ no: 8, name: "breadcrumb", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1814
|
+
{ no: 9, name: "default", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1815
|
+
{ no: 19, name: "input_hints", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1816
|
+
{ no: 20, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1817
|
+
{ no: 21, name: "textarea", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1818
|
+
{ no: 22, name: "select", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1819
|
+
{ no: 23, name: "combobox", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1820
|
+
{ no: 24, name: "checkbox", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1821
|
+
{ no: 25, name: "multiselect", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1822
|
+
{ no: 26, name: "number", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
|
|
1823
|
+
]);
|
|
1824
|
+
|
|
1825
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PreferenceTrait {
|
|
1826
|
+
return new PreferenceTrait().fromBinary(bytes, options);
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PreferenceTrait {
|
|
1830
|
+
return new PreferenceTrait().fromJson(jsonValue, options);
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PreferenceTrait {
|
|
1834
|
+
return new PreferenceTrait().fromJsonString(jsonString, options);
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
static equals(a: PreferenceTrait | PlainMessage<PreferenceTrait> | undefined, b: PreferenceTrait | PlainMessage<PreferenceTrait> | undefined): boolean {
|
|
1838
|
+
return proto3.util.equals(PreferenceTrait, a, b);
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* @generated from message raystack.frontier.v1beta1.Preference
|
|
1844
|
+
*/
|
|
1845
|
+
export class Preference extends Message<Preference> {
|
|
1846
|
+
/**
|
|
1847
|
+
* @generated from field: string id = 1;
|
|
1848
|
+
*/
|
|
1849
|
+
id = "";
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* @generated from field: string name = 2;
|
|
1853
|
+
*/
|
|
1854
|
+
name = "";
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* @generated from field: string value = 3;
|
|
1858
|
+
*/
|
|
1859
|
+
value = "";
|
|
1860
|
+
|
|
1861
|
+
/**
|
|
1862
|
+
* @generated from field: string resource_id = 4;
|
|
1863
|
+
*/
|
|
1864
|
+
resourceId = "";
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* @generated from field: string resource_type = 5;
|
|
1868
|
+
*/
|
|
1869
|
+
resourceType = "";
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
|
1873
|
+
*/
|
|
1874
|
+
createdAt?: Timestamp;
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 11;
|
|
1878
|
+
*/
|
|
1879
|
+
updatedAt?: Timestamp;
|
|
1880
|
+
|
|
1881
|
+
constructor(data?: PartialMessage<Preference>) {
|
|
1882
|
+
super();
|
|
1883
|
+
proto3.util.initPartial(data, this);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1887
|
+
static readonly typeName = "raystack.frontier.v1beta1.Preference";
|
|
1888
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1889
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1890
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1891
|
+
{ no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1892
|
+
{ no: 4, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1893
|
+
{ no: 5, name: "resource_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1894
|
+
{ no: 10, name: "created_at", kind: "message", T: Timestamp },
|
|
1895
|
+
{ no: 11, name: "updated_at", kind: "message", T: Timestamp },
|
|
1896
|
+
]);
|
|
1897
|
+
|
|
1898
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Preference {
|
|
1899
|
+
return new Preference().fromBinary(bytes, options);
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Preference {
|
|
1903
|
+
return new Preference().fromJson(jsonValue, options);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Preference {
|
|
1907
|
+
return new Preference().fromJsonString(jsonString, options);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
static equals(a: Preference | PlainMessage<Preference> | undefined, b: Preference | PlainMessage<Preference> | undefined): boolean {
|
|
1911
|
+
return proto3.util.equals(Preference, a, b);
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* @generated from message raystack.frontier.v1beta1.BillingAccount
|
|
1917
|
+
*/
|
|
1918
|
+
export class BillingAccount extends Message<BillingAccount> {
|
|
1919
|
+
/**
|
|
1920
|
+
* @generated from field: string id = 1;
|
|
1921
|
+
*/
|
|
1922
|
+
id = "";
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* @generated from field: string org_id = 2;
|
|
1926
|
+
*/
|
|
1927
|
+
orgId = "";
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* @generated from field: string name = 3;
|
|
1931
|
+
*/
|
|
1932
|
+
name = "";
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* @generated from field: string email = 4;
|
|
1936
|
+
*/
|
|
1937
|
+
email = "";
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* @generated from field: string phone = 5;
|
|
1941
|
+
*/
|
|
1942
|
+
phone = "";
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* @generated from field: raystack.frontier.v1beta1.BillingAccount.Address address = 6;
|
|
1946
|
+
*/
|
|
1947
|
+
address?: BillingAccount_Address;
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* @generated from field: string provider_id = 7;
|
|
1951
|
+
*/
|
|
1952
|
+
providerId = "";
|
|
1953
|
+
|
|
1954
|
+
/**
|
|
1955
|
+
* @generated from field: string provider = 8;
|
|
1956
|
+
*/
|
|
1957
|
+
provider = "";
|
|
1958
|
+
|
|
1959
|
+
/**
|
|
1960
|
+
* @generated from field: string currency = 9;
|
|
1961
|
+
*/
|
|
1962
|
+
currency = "";
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* @generated from field: string state = 10;
|
|
1966
|
+
*/
|
|
1967
|
+
state = "";
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* @generated from field: repeated raystack.frontier.v1beta1.BillingAccount.Tax tax_data = 11;
|
|
1971
|
+
*/
|
|
1972
|
+
taxData: BillingAccount_Tax[] = [];
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
1976
|
+
*/
|
|
1977
|
+
metadata?: Struct;
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
1981
|
+
*/
|
|
1982
|
+
createdAt?: Timestamp;
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
1986
|
+
*/
|
|
1987
|
+
updatedAt?: Timestamp;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* @generated from field: raystack.frontier.v1beta1.Organization organization = 101;
|
|
1991
|
+
*/
|
|
1992
|
+
organization?: Organization;
|
|
1993
|
+
|
|
1994
|
+
constructor(data?: PartialMessage<BillingAccount>) {
|
|
1995
|
+
super();
|
|
1996
|
+
proto3.util.initPartial(data, this);
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2000
|
+
static readonly typeName = "raystack.frontier.v1beta1.BillingAccount";
|
|
2001
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2002
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2003
|
+
{ no: 2, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2004
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2005
|
+
{ no: 4, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2006
|
+
{ no: 5, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2007
|
+
{ no: 6, name: "address", kind: "message", T: BillingAccount_Address },
|
|
2008
|
+
{ no: 7, name: "provider_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2009
|
+
{ no: 8, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2010
|
+
{ no: 9, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2011
|
+
{ no: 10, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2012
|
+
{ no: 11, name: "tax_data", kind: "message", T: BillingAccount_Tax, repeated: true },
|
|
2013
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
2014
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
2015
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
2016
|
+
{ no: 101, name: "organization", kind: "message", T: Organization },
|
|
2017
|
+
]);
|
|
2018
|
+
|
|
2019
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillingAccount {
|
|
2020
|
+
return new BillingAccount().fromBinary(bytes, options);
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillingAccount {
|
|
2024
|
+
return new BillingAccount().fromJson(jsonValue, options);
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillingAccount {
|
|
2028
|
+
return new BillingAccount().fromJsonString(jsonString, options);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
static equals(a: BillingAccount | PlainMessage<BillingAccount> | undefined, b: BillingAccount | PlainMessage<BillingAccount> | undefined): boolean {
|
|
2032
|
+
return proto3.util.equals(BillingAccount, a, b);
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* @generated from message raystack.frontier.v1beta1.BillingAccount.Address
|
|
2038
|
+
*/
|
|
2039
|
+
export class BillingAccount_Address extends Message<BillingAccount_Address> {
|
|
2040
|
+
/**
|
|
2041
|
+
* @generated from field: string line1 = 1;
|
|
2042
|
+
*/
|
|
2043
|
+
line1 = "";
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* @generated from field: string line2 = 2;
|
|
2047
|
+
*/
|
|
2048
|
+
line2 = "";
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* @generated from field: string city = 3;
|
|
2052
|
+
*/
|
|
2053
|
+
city = "";
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* @generated from field: string state = 4;
|
|
2057
|
+
*/
|
|
2058
|
+
state = "";
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* @generated from field: string postal_code = 5;
|
|
2062
|
+
*/
|
|
2063
|
+
postalCode = "";
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* @generated from field: string country = 6;
|
|
2067
|
+
*/
|
|
2068
|
+
country = "";
|
|
2069
|
+
|
|
2070
|
+
constructor(data?: PartialMessage<BillingAccount_Address>) {
|
|
2071
|
+
super();
|
|
2072
|
+
proto3.util.initPartial(data, this);
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2076
|
+
static readonly typeName = "raystack.frontier.v1beta1.BillingAccount.Address";
|
|
2077
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2078
|
+
{ no: 1, name: "line1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2079
|
+
{ no: 2, name: "line2", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2080
|
+
{ no: 3, name: "city", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2081
|
+
{ no: 4, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2082
|
+
{ no: 5, name: "postal_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2083
|
+
{ no: 6, name: "country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2084
|
+
]);
|
|
2085
|
+
|
|
2086
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillingAccount_Address {
|
|
2087
|
+
return new BillingAccount_Address().fromBinary(bytes, options);
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillingAccount_Address {
|
|
2091
|
+
return new BillingAccount_Address().fromJson(jsonValue, options);
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillingAccount_Address {
|
|
2095
|
+
return new BillingAccount_Address().fromJsonString(jsonString, options);
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
static equals(a: BillingAccount_Address | PlainMessage<BillingAccount_Address> | undefined, b: BillingAccount_Address | PlainMessage<BillingAccount_Address> | undefined): boolean {
|
|
2099
|
+
return proto3.util.equals(BillingAccount_Address, a, b);
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* @generated from message raystack.frontier.v1beta1.BillingAccount.Tax
|
|
2105
|
+
*/
|
|
2106
|
+
export class BillingAccount_Tax extends Message<BillingAccount_Tax> {
|
|
2107
|
+
/**
|
|
2108
|
+
* tax type like "vat", "gst", "sales_tax" or if it's
|
|
2109
|
+
* provider specific us_ein, uk_vat, in_gst, etc
|
|
2110
|
+
*
|
|
2111
|
+
* @generated from field: string type = 1;
|
|
2112
|
+
*/
|
|
2113
|
+
type = "";
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* unique identifier provided by the tax agency
|
|
2117
|
+
*
|
|
2118
|
+
* @generated from field: string id = 2;
|
|
2119
|
+
*/
|
|
2120
|
+
id = "";
|
|
2121
|
+
|
|
2122
|
+
constructor(data?: PartialMessage<BillingAccount_Tax>) {
|
|
2123
|
+
super();
|
|
2124
|
+
proto3.util.initPartial(data, this);
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2128
|
+
static readonly typeName = "raystack.frontier.v1beta1.BillingAccount.Tax";
|
|
2129
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2130
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2131
|
+
{ no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2132
|
+
]);
|
|
2133
|
+
|
|
2134
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillingAccount_Tax {
|
|
2135
|
+
return new BillingAccount_Tax().fromBinary(bytes, options);
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillingAccount_Tax {
|
|
2139
|
+
return new BillingAccount_Tax().fromJson(jsonValue, options);
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillingAccount_Tax {
|
|
2143
|
+
return new BillingAccount_Tax().fromJsonString(jsonString, options);
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
static equals(a: BillingAccount_Tax | PlainMessage<BillingAccount_Tax> | undefined, b: BillingAccount_Tax | PlainMessage<BillingAccount_Tax> | undefined): boolean {
|
|
2147
|
+
return proto3.util.equals(BillingAccount_Tax, a, b);
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* @generated from message raystack.frontier.v1beta1.BillingAccount.Balance
|
|
2153
|
+
*/
|
|
2154
|
+
export class BillingAccount_Balance extends Message<BillingAccount_Balance> {
|
|
2155
|
+
/**
|
|
2156
|
+
* @generated from field: int64 amount = 1;
|
|
2157
|
+
*/
|
|
2158
|
+
amount = protoInt64.zero;
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* @generated from field: string currency = 2;
|
|
2162
|
+
*/
|
|
2163
|
+
currency = "";
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 3;
|
|
2167
|
+
*/
|
|
2168
|
+
updatedAt?: Timestamp;
|
|
2169
|
+
|
|
2170
|
+
constructor(data?: PartialMessage<BillingAccount_Balance>) {
|
|
2171
|
+
super();
|
|
2172
|
+
proto3.util.initPartial(data, this);
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2176
|
+
static readonly typeName = "raystack.frontier.v1beta1.BillingAccount.Balance";
|
|
2177
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2178
|
+
{ no: 1, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2179
|
+
{ no: 2, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2180
|
+
{ no: 3, name: "updated_at", kind: "message", T: Timestamp },
|
|
2181
|
+
]);
|
|
2182
|
+
|
|
2183
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillingAccount_Balance {
|
|
2184
|
+
return new BillingAccount_Balance().fromBinary(bytes, options);
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillingAccount_Balance {
|
|
2188
|
+
return new BillingAccount_Balance().fromJson(jsonValue, options);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillingAccount_Balance {
|
|
2192
|
+
return new BillingAccount_Balance().fromJsonString(jsonString, options);
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
static equals(a: BillingAccount_Balance | PlainMessage<BillingAccount_Balance> | undefined, b: BillingAccount_Balance | PlainMessage<BillingAccount_Balance> | undefined): boolean {
|
|
2196
|
+
return proto3.util.equals(BillingAccount_Balance, a, b);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* @generated from message raystack.frontier.v1beta1.BillingAccountDetails
|
|
2202
|
+
*/
|
|
2203
|
+
export class BillingAccountDetails extends Message<BillingAccountDetails> {
|
|
2204
|
+
/**
|
|
2205
|
+
* credit_min is the minimum credit limit for the billing account
|
|
2206
|
+
* default is 0, negative numbers work as overdraft, positive
|
|
2207
|
+
* numbers work as minimum purchase limit
|
|
2208
|
+
*
|
|
2209
|
+
* @generated from field: int64 credit_min = 1;
|
|
2210
|
+
*/
|
|
2211
|
+
creditMin = protoInt64.zero;
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* due_in_days is the number of days after the invoice finalization
|
|
2215
|
+
* that it will be considered overdue, if set to 0, the customer will
|
|
2216
|
+
* be charged immediately
|
|
2217
|
+
*
|
|
2218
|
+
* @generated from field: int64 due_in_days = 2;
|
|
2219
|
+
*/
|
|
2220
|
+
dueInDays = protoInt64.zero;
|
|
2221
|
+
|
|
2222
|
+
constructor(data?: PartialMessage<BillingAccountDetails>) {
|
|
2223
|
+
super();
|
|
2224
|
+
proto3.util.initPartial(data, this);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2228
|
+
static readonly typeName = "raystack.frontier.v1beta1.BillingAccountDetails";
|
|
2229
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2230
|
+
{ no: 1, name: "credit_min", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2231
|
+
{ no: 2, name: "due_in_days", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2232
|
+
]);
|
|
2233
|
+
|
|
2234
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillingAccountDetails {
|
|
2235
|
+
return new BillingAccountDetails().fromBinary(bytes, options);
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillingAccountDetails {
|
|
2239
|
+
return new BillingAccountDetails().fromJson(jsonValue, options);
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillingAccountDetails {
|
|
2243
|
+
return new BillingAccountDetails().fromJsonString(jsonString, options);
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
static equals(a: BillingAccountDetails | PlainMessage<BillingAccountDetails> | undefined, b: BillingAccountDetails | PlainMessage<BillingAccountDetails> | undefined): boolean {
|
|
2247
|
+
return proto3.util.equals(BillingAccountDetails, a, b);
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* @generated from message raystack.frontier.v1beta1.Subscription
|
|
2253
|
+
*/
|
|
2254
|
+
export class Subscription extends Message<Subscription> {
|
|
2255
|
+
/**
|
|
2256
|
+
* @generated from field: string id = 1;
|
|
2257
|
+
*/
|
|
2258
|
+
id = "";
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* @generated from field: string customer_id = 2;
|
|
2262
|
+
*/
|
|
2263
|
+
customerId = "";
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* @generated from field: string provider_id = 3;
|
|
2267
|
+
*/
|
|
2268
|
+
providerId = "";
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* @generated from field: string plan_id = 4;
|
|
2272
|
+
*/
|
|
2273
|
+
planId = "";
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* @generated from field: string state = 5;
|
|
2277
|
+
*/
|
|
2278
|
+
state = "";
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* @generated from field: google.protobuf.Struct metadata = 10;
|
|
2282
|
+
*/
|
|
2283
|
+
metadata?: Struct;
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* @generated from field: google.protobuf.Timestamp created_at = 11;
|
|
2287
|
+
*/
|
|
2288
|
+
createdAt?: Timestamp;
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 12;
|
|
2292
|
+
*/
|
|
2293
|
+
updatedAt?: Timestamp;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* @generated from field: google.protobuf.Timestamp canceled_at = 13;
|
|
2297
|
+
*/
|
|
2298
|
+
canceledAt?: Timestamp;
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* @generated from field: google.protobuf.Timestamp ended_at = 14;
|
|
2302
|
+
*/
|
|
2303
|
+
endedAt?: Timestamp;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* @generated from field: google.protobuf.Timestamp trial_ends_at = 15;
|
|
2307
|
+
*/
|
|
2308
|
+
trialEndsAt?: Timestamp;
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* @generated from field: google.protobuf.Timestamp current_period_start_at = 16;
|
|
2312
|
+
*/
|
|
2313
|
+
currentPeriodStartAt?: Timestamp;
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* @generated from field: google.protobuf.Timestamp current_period_end_at = 17;
|
|
2317
|
+
*/
|
|
2318
|
+
currentPeriodEndAt?: Timestamp;
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* @generated from field: google.protobuf.Timestamp billing_cycle_anchor_at = 18;
|
|
2322
|
+
*/
|
|
2323
|
+
billingCycleAnchorAt?: Timestamp;
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* @generated from field: repeated raystack.frontier.v1beta1.Subscription.Phase phases = 20;
|
|
2327
|
+
*/
|
|
2328
|
+
phases: Subscription_Phase[] = [];
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* @generated from field: raystack.frontier.v1beta1.BillingAccount customer = 101;
|
|
2332
|
+
*/
|
|
2333
|
+
customer?: BillingAccount;
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* @generated from field: raystack.frontier.v1beta1.Plan plan = 102;
|
|
2337
|
+
*/
|
|
2338
|
+
plan?: Plan;
|
|
2339
|
+
|
|
2340
|
+
constructor(data?: PartialMessage<Subscription>) {
|
|
2341
|
+
super();
|
|
2342
|
+
proto3.util.initPartial(data, this);
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2346
|
+
static readonly typeName = "raystack.frontier.v1beta1.Subscription";
|
|
2347
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2348
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2349
|
+
{ no: 2, name: "customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2350
|
+
{ no: 3, name: "provider_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2351
|
+
{ no: 4, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2352
|
+
{ no: 5, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2353
|
+
{ no: 10, name: "metadata", kind: "message", T: Struct },
|
|
2354
|
+
{ no: 11, name: "created_at", kind: "message", T: Timestamp },
|
|
2355
|
+
{ no: 12, name: "updated_at", kind: "message", T: Timestamp },
|
|
2356
|
+
{ no: 13, name: "canceled_at", kind: "message", T: Timestamp },
|
|
2357
|
+
{ no: 14, name: "ended_at", kind: "message", T: Timestamp },
|
|
2358
|
+
{ no: 15, name: "trial_ends_at", kind: "message", T: Timestamp },
|
|
2359
|
+
{ no: 16, name: "current_period_start_at", kind: "message", T: Timestamp },
|
|
2360
|
+
{ no: 17, name: "current_period_end_at", kind: "message", T: Timestamp },
|
|
2361
|
+
{ no: 18, name: "billing_cycle_anchor_at", kind: "message", T: Timestamp },
|
|
2362
|
+
{ no: 20, name: "phases", kind: "message", T: Subscription_Phase, repeated: true },
|
|
2363
|
+
{ no: 101, name: "customer", kind: "message", T: BillingAccount },
|
|
2364
|
+
{ no: 102, name: "plan", kind: "message", T: Plan },
|
|
2365
|
+
]);
|
|
2366
|
+
|
|
2367
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Subscription {
|
|
2368
|
+
return new Subscription().fromBinary(bytes, options);
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Subscription {
|
|
2372
|
+
return new Subscription().fromJson(jsonValue, options);
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Subscription {
|
|
2376
|
+
return new Subscription().fromJsonString(jsonString, options);
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
static equals(a: Subscription | PlainMessage<Subscription> | undefined, b: Subscription | PlainMessage<Subscription> | undefined): boolean {
|
|
2380
|
+
return proto3.util.equals(Subscription, a, b);
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
/**
|
|
2385
|
+
* @generated from message raystack.frontier.v1beta1.Subscription.Phase
|
|
2386
|
+
*/
|
|
2387
|
+
export class Subscription_Phase extends Message<Subscription_Phase> {
|
|
2388
|
+
/**
|
|
2389
|
+
* @generated from field: google.protobuf.Timestamp effective_at = 1;
|
|
2390
|
+
*/
|
|
2391
|
+
effectiveAt?: Timestamp;
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* @generated from field: string plan_id = 2;
|
|
2395
|
+
*/
|
|
2396
|
+
planId = "";
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
* @generated from field: string reason = 3;
|
|
2400
|
+
*/
|
|
2401
|
+
reason = "";
|
|
2402
|
+
|
|
2403
|
+
constructor(data?: PartialMessage<Subscription_Phase>) {
|
|
2404
|
+
super();
|
|
2405
|
+
proto3.util.initPartial(data, this);
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2409
|
+
static readonly typeName = "raystack.frontier.v1beta1.Subscription.Phase";
|
|
2410
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2411
|
+
{ no: 1, name: "effective_at", kind: "message", T: Timestamp },
|
|
2412
|
+
{ no: 2, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2413
|
+
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2414
|
+
]);
|
|
2415
|
+
|
|
2416
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Subscription_Phase {
|
|
2417
|
+
return new Subscription_Phase().fromBinary(bytes, options);
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Subscription_Phase {
|
|
2421
|
+
return new Subscription_Phase().fromJson(jsonValue, options);
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Subscription_Phase {
|
|
2425
|
+
return new Subscription_Phase().fromJsonString(jsonString, options);
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
static equals(a: Subscription_Phase | PlainMessage<Subscription_Phase> | undefined, b: Subscription_Phase | PlainMessage<Subscription_Phase> | undefined): boolean {
|
|
2429
|
+
return proto3.util.equals(Subscription_Phase, a, b);
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* @generated from message raystack.frontier.v1beta1.CheckoutSession
|
|
2435
|
+
*/
|
|
2436
|
+
export class CheckoutSession extends Message<CheckoutSession> {
|
|
2437
|
+
/**
|
|
2438
|
+
* @generated from field: string id = 1;
|
|
2439
|
+
*/
|
|
2440
|
+
id = "";
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* @generated from field: string checkout_url = 2;
|
|
2444
|
+
*/
|
|
2445
|
+
checkoutUrl = "";
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* @generated from field: string success_url = 3;
|
|
2449
|
+
*/
|
|
2450
|
+
successUrl = "";
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* @generated from field: string cancel_url = 4;
|
|
2454
|
+
*/
|
|
2455
|
+
cancelUrl = "";
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* @generated from field: string state = 5;
|
|
2459
|
+
*/
|
|
2460
|
+
state = "";
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* @generated from field: string plan = 6;
|
|
2464
|
+
*/
|
|
2465
|
+
plan = "";
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* @generated from field: string product = 7;
|
|
2469
|
+
*/
|
|
2470
|
+
product = "";
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* @generated from field: google.protobuf.Struct metadata = 10;
|
|
2474
|
+
*/
|
|
2475
|
+
metadata?: Struct;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* @generated from field: google.protobuf.Timestamp created_at = 11;
|
|
2479
|
+
*/
|
|
2480
|
+
createdAt?: Timestamp;
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 12;
|
|
2484
|
+
*/
|
|
2485
|
+
updatedAt?: Timestamp;
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* @generated from field: google.protobuf.Timestamp expire_at = 13;
|
|
2489
|
+
*/
|
|
2490
|
+
expireAt?: Timestamp;
|
|
2491
|
+
|
|
2492
|
+
constructor(data?: PartialMessage<CheckoutSession>) {
|
|
2493
|
+
super();
|
|
2494
|
+
proto3.util.initPartial(data, this);
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2498
|
+
static readonly typeName = "raystack.frontier.v1beta1.CheckoutSession";
|
|
2499
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2500
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2501
|
+
{ no: 2, name: "checkout_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2502
|
+
{ no: 3, name: "success_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2503
|
+
{ no: 4, name: "cancel_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2504
|
+
{ no: 5, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2505
|
+
{ no: 6, name: "plan", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2506
|
+
{ no: 7, name: "product", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2507
|
+
{ no: 10, name: "metadata", kind: "message", T: Struct },
|
|
2508
|
+
{ no: 11, name: "created_at", kind: "message", T: Timestamp },
|
|
2509
|
+
{ no: 12, name: "updated_at", kind: "message", T: Timestamp },
|
|
2510
|
+
{ no: 13, name: "expire_at", kind: "message", T: Timestamp },
|
|
2511
|
+
]);
|
|
2512
|
+
|
|
2513
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckoutSession {
|
|
2514
|
+
return new CheckoutSession().fromBinary(bytes, options);
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckoutSession {
|
|
2518
|
+
return new CheckoutSession().fromJson(jsonValue, options);
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckoutSession {
|
|
2522
|
+
return new CheckoutSession().fromJsonString(jsonString, options);
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
static equals(a: CheckoutSession | PlainMessage<CheckoutSession> | undefined, b: CheckoutSession | PlainMessage<CheckoutSession> | undefined): boolean {
|
|
2526
|
+
return proto3.util.equals(CheckoutSession, a, b);
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* @generated from message raystack.frontier.v1beta1.Plan
|
|
2532
|
+
*/
|
|
2533
|
+
export class Plan extends Message<Plan> {
|
|
2534
|
+
/**
|
|
2535
|
+
* @generated from field: string id = 1;
|
|
2536
|
+
*/
|
|
2537
|
+
id = "";
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* @generated from field: string name = 2;
|
|
2541
|
+
*/
|
|
2542
|
+
name = "";
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* @generated from field: string title = 3;
|
|
2546
|
+
*/
|
|
2547
|
+
title = "";
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* @generated from field: string description = 4;
|
|
2551
|
+
*/
|
|
2552
|
+
description = "";
|
|
2553
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from field: repeated raystack.frontier.v1beta1.Product products = 5;
|
|
2556
|
+
*/
|
|
2557
|
+
products: Product[] = [];
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* known intervals are "day", "week", "month", and "year"
|
|
2561
|
+
*
|
|
2562
|
+
* @generated from field: string interval = 6;
|
|
2563
|
+
*/
|
|
2564
|
+
interval = "";
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* @generated from field: int64 on_start_credits = 7;
|
|
2568
|
+
*/
|
|
2569
|
+
onStartCredits = protoInt64.zero;
|
|
2570
|
+
|
|
2571
|
+
/**
|
|
2572
|
+
* @generated from field: int64 trial_days = 8;
|
|
2573
|
+
*/
|
|
2574
|
+
trialDays = protoInt64.zero;
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
2578
|
+
*/
|
|
2579
|
+
metadata?: Struct;
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
2583
|
+
*/
|
|
2584
|
+
createdAt?: Timestamp;
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
2588
|
+
*/
|
|
2589
|
+
updatedAt?: Timestamp;
|
|
2590
|
+
|
|
2591
|
+
constructor(data?: PartialMessage<Plan>) {
|
|
2592
|
+
super();
|
|
2593
|
+
proto3.util.initPartial(data, this);
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2597
|
+
static readonly typeName = "raystack.frontier.v1beta1.Plan";
|
|
2598
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2599
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2600
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2601
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2602
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2603
|
+
{ no: 5, name: "products", kind: "message", T: Product, repeated: true },
|
|
2604
|
+
{ no: 6, name: "interval", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2605
|
+
{ no: 7, name: "on_start_credits", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2606
|
+
{ no: 8, name: "trial_days", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2607
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
2608
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
2609
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
2610
|
+
]);
|
|
2611
|
+
|
|
2612
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Plan {
|
|
2613
|
+
return new Plan().fromBinary(bytes, options);
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Plan {
|
|
2617
|
+
return new Plan().fromJson(jsonValue, options);
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Plan {
|
|
2621
|
+
return new Plan().fromJsonString(jsonString, options);
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
static equals(a: Plan | PlainMessage<Plan> | undefined, b: Plan | PlainMessage<Plan> | undefined): boolean {
|
|
2625
|
+
return proto3.util.equals(Plan, a, b);
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
/**
|
|
2630
|
+
* @generated from message raystack.frontier.v1beta1.Product
|
|
2631
|
+
*/
|
|
2632
|
+
export class Product extends Message<Product> {
|
|
2633
|
+
/**
|
|
2634
|
+
* @generated from field: string id = 1;
|
|
2635
|
+
*/
|
|
2636
|
+
id = "";
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* @generated from field: string name = 2;
|
|
2640
|
+
*/
|
|
2641
|
+
name = "";
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* @generated from field: string title = 3;
|
|
2645
|
+
*/
|
|
2646
|
+
title = "";
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* @generated from field: string description = 4;
|
|
2650
|
+
*/
|
|
2651
|
+
description = "";
|
|
2652
|
+
|
|
2653
|
+
/**
|
|
2654
|
+
* @generated from field: repeated string plan_ids = 5;
|
|
2655
|
+
*/
|
|
2656
|
+
planIds: string[] = [];
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* @generated from field: string state = 6;
|
|
2660
|
+
*/
|
|
2661
|
+
state = "";
|
|
2662
|
+
|
|
2663
|
+
/**
|
|
2664
|
+
* @generated from field: repeated raystack.frontier.v1beta1.Price prices = 7;
|
|
2665
|
+
*/
|
|
2666
|
+
prices: Price[] = [];
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* @generated from field: string behavior = 9;
|
|
2670
|
+
*/
|
|
2671
|
+
behavior = "";
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* @generated from field: repeated raystack.frontier.v1beta1.Feature features = 10;
|
|
2675
|
+
*/
|
|
2676
|
+
features: Feature[] = [];
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* @generated from field: raystack.frontier.v1beta1.Product.BehaviorConfig behavior_config = 11;
|
|
2680
|
+
*/
|
|
2681
|
+
behaviorConfig?: Product_BehaviorConfig;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
2685
|
+
*/
|
|
2686
|
+
metadata?: Struct;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
2690
|
+
*/
|
|
2691
|
+
createdAt?: Timestamp;
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
2695
|
+
*/
|
|
2696
|
+
updatedAt?: Timestamp;
|
|
2697
|
+
|
|
2698
|
+
constructor(data?: PartialMessage<Product>) {
|
|
2699
|
+
super();
|
|
2700
|
+
proto3.util.initPartial(data, this);
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2704
|
+
static readonly typeName = "raystack.frontier.v1beta1.Product";
|
|
2705
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2706
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2707
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2708
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2709
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2710
|
+
{ no: 5, name: "plan_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2711
|
+
{ no: 6, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2712
|
+
{ no: 7, name: "prices", kind: "message", T: Price, repeated: true },
|
|
2713
|
+
{ no: 9, name: "behavior", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2714
|
+
{ no: 10, name: "features", kind: "message", T: Feature, repeated: true },
|
|
2715
|
+
{ no: 11, name: "behavior_config", kind: "message", T: Product_BehaviorConfig },
|
|
2716
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
2717
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
2718
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
2719
|
+
]);
|
|
2720
|
+
|
|
2721
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Product {
|
|
2722
|
+
return new Product().fromBinary(bytes, options);
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Product {
|
|
2726
|
+
return new Product().fromJson(jsonValue, options);
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Product {
|
|
2730
|
+
return new Product().fromJsonString(jsonString, options);
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
static equals(a: Product | PlainMessage<Product> | undefined, b: Product | PlainMessage<Product> | undefined): boolean {
|
|
2734
|
+
return proto3.util.equals(Product, a, b);
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* @generated from message raystack.frontier.v1beta1.Product.BehaviorConfig
|
|
2740
|
+
*/
|
|
2741
|
+
export class Product_BehaviorConfig extends Message<Product_BehaviorConfig> {
|
|
2742
|
+
/**
|
|
2743
|
+
* @generated from field: int64 credit_amount = 1;
|
|
2744
|
+
*/
|
|
2745
|
+
creditAmount = protoInt64.zero;
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* @generated from field: int64 seat_limit = 2;
|
|
2749
|
+
*/
|
|
2750
|
+
seatLimit = protoInt64.zero;
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* @generated from field: int64 min_quantity = 3;
|
|
2754
|
+
*/
|
|
2755
|
+
minQuantity = protoInt64.zero;
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
* @generated from field: int64 max_quantity = 4;
|
|
2759
|
+
*/
|
|
2760
|
+
maxQuantity = protoInt64.zero;
|
|
2761
|
+
|
|
2762
|
+
constructor(data?: PartialMessage<Product_BehaviorConfig>) {
|
|
2763
|
+
super();
|
|
2764
|
+
proto3.util.initPartial(data, this);
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2768
|
+
static readonly typeName = "raystack.frontier.v1beta1.Product.BehaviorConfig";
|
|
2769
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2770
|
+
{ no: 1, name: "credit_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2771
|
+
{ no: 2, name: "seat_limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2772
|
+
{ no: 3, name: "min_quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2773
|
+
{ no: 4, name: "max_quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2774
|
+
]);
|
|
2775
|
+
|
|
2776
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Product_BehaviorConfig {
|
|
2777
|
+
return new Product_BehaviorConfig().fromBinary(bytes, options);
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Product_BehaviorConfig {
|
|
2781
|
+
return new Product_BehaviorConfig().fromJson(jsonValue, options);
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Product_BehaviorConfig {
|
|
2785
|
+
return new Product_BehaviorConfig().fromJsonString(jsonString, options);
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
static equals(a: Product_BehaviorConfig | PlainMessage<Product_BehaviorConfig> | undefined, b: Product_BehaviorConfig | PlainMessage<Product_BehaviorConfig> | undefined): boolean {
|
|
2789
|
+
return proto3.util.equals(Product_BehaviorConfig, a, b);
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
/**
|
|
2794
|
+
* @generated from message raystack.frontier.v1beta1.Feature
|
|
2795
|
+
*/
|
|
2796
|
+
export class Feature extends Message<Feature> {
|
|
2797
|
+
/**
|
|
2798
|
+
* @generated from field: string id = 1;
|
|
2799
|
+
*/
|
|
2800
|
+
id = "";
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
* machine friendly name
|
|
2804
|
+
*
|
|
2805
|
+
* @generated from field: string name = 2;
|
|
2806
|
+
*/
|
|
2807
|
+
name = "";
|
|
2808
|
+
|
|
2809
|
+
/**
|
|
2810
|
+
* @generated from field: repeated string product_ids = 3;
|
|
2811
|
+
*/
|
|
2812
|
+
productIds: string[] = [];
|
|
2813
|
+
|
|
2814
|
+
/**
|
|
2815
|
+
* human friendly name
|
|
2816
|
+
*
|
|
2817
|
+
* @generated from field: string title = 4;
|
|
2818
|
+
*/
|
|
2819
|
+
title = "";
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
2823
|
+
*/
|
|
2824
|
+
metadata?: Struct;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
2828
|
+
*/
|
|
2829
|
+
createdAt?: Timestamp;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
2833
|
+
*/
|
|
2834
|
+
updatedAt?: Timestamp;
|
|
2835
|
+
|
|
2836
|
+
constructor(data?: PartialMessage<Feature>) {
|
|
2837
|
+
super();
|
|
2838
|
+
proto3.util.initPartial(data, this);
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2842
|
+
static readonly typeName = "raystack.frontier.v1beta1.Feature";
|
|
2843
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2844
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2845
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2846
|
+
{ no: 3, name: "product_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2847
|
+
{ no: 4, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2848
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
2849
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
2850
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
2851
|
+
]);
|
|
2852
|
+
|
|
2853
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Feature {
|
|
2854
|
+
return new Feature().fromBinary(bytes, options);
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Feature {
|
|
2858
|
+
return new Feature().fromJson(jsonValue, options);
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Feature {
|
|
2862
|
+
return new Feature().fromJsonString(jsonString, options);
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
static equals(a: Feature | PlainMessage<Feature> | undefined, b: Feature | PlainMessage<Feature> | undefined): boolean {
|
|
2866
|
+
return proto3.util.equals(Feature, a, b);
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* @generated from message raystack.frontier.v1beta1.Price
|
|
2872
|
+
*/
|
|
2873
|
+
export class Price extends Message<Price> {
|
|
2874
|
+
/**
|
|
2875
|
+
* @generated from field: string id = 1;
|
|
2876
|
+
*/
|
|
2877
|
+
id = "";
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* @generated from field: string product_id = 2;
|
|
2881
|
+
*/
|
|
2882
|
+
productId = "";
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
* @generated from field: string provider_id = 3;
|
|
2886
|
+
*/
|
|
2887
|
+
providerId = "";
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* @generated from field: string name = 4;
|
|
2891
|
+
*/
|
|
2892
|
+
name = "";
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* known intervals are "day", "week", "month", and "year"
|
|
2896
|
+
*
|
|
2897
|
+
* @generated from field: string interval = 6;
|
|
2898
|
+
*/
|
|
2899
|
+
interval = "";
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* usage_type known types are "licensed" and "metered"
|
|
2903
|
+
*
|
|
2904
|
+
* @generated from field: string usage_type = 7;
|
|
2905
|
+
*/
|
|
2906
|
+
usageType = "";
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* billing_scheme known schemes are "tiered" and "flat"
|
|
2910
|
+
*
|
|
2911
|
+
* @generated from field: string billing_scheme = 8;
|
|
2912
|
+
*/
|
|
2913
|
+
billingScheme = "";
|
|
2914
|
+
|
|
2915
|
+
/**
|
|
2916
|
+
* @generated from field: string state = 9;
|
|
2917
|
+
*/
|
|
2918
|
+
state = "";
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* currency like "usd", "eur", "gbp"
|
|
2922
|
+
*
|
|
2923
|
+
* @generated from field: string currency = 10;
|
|
2924
|
+
*/
|
|
2925
|
+
currency = "";
|
|
2926
|
+
|
|
2927
|
+
/**
|
|
2928
|
+
* @generated from field: int64 amount = 11;
|
|
2929
|
+
*/
|
|
2930
|
+
amount = protoInt64.zero;
|
|
2931
|
+
|
|
2932
|
+
/**
|
|
2933
|
+
* metered_aggregate known aggregations are "sum", "last_during_period" and "max"
|
|
2934
|
+
*
|
|
2935
|
+
* @generated from field: string metered_aggregate = 13;
|
|
2936
|
+
*/
|
|
2937
|
+
meteredAggregate = "";
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* tier_mode known modes are "graduated" and "volume"
|
|
2941
|
+
*
|
|
2942
|
+
* @generated from field: string tier_mode = 14;
|
|
2943
|
+
*/
|
|
2944
|
+
tierMode = "";
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
2948
|
+
*/
|
|
2949
|
+
metadata?: Struct;
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
2953
|
+
*/
|
|
2954
|
+
createdAt?: Timestamp;
|
|
2955
|
+
|
|
2956
|
+
/**
|
|
2957
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
2958
|
+
*/
|
|
2959
|
+
updatedAt?: Timestamp;
|
|
2960
|
+
|
|
2961
|
+
constructor(data?: PartialMessage<Price>) {
|
|
2962
|
+
super();
|
|
2963
|
+
proto3.util.initPartial(data, this);
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2967
|
+
static readonly typeName = "raystack.frontier.v1beta1.Price";
|
|
2968
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2969
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2970
|
+
{ no: 2, name: "product_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2971
|
+
{ no: 3, name: "provider_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2972
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2973
|
+
{ no: 6, name: "interval", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2974
|
+
{ no: 7, name: "usage_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2975
|
+
{ no: 8, name: "billing_scheme", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2976
|
+
{ no: 9, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2977
|
+
{ no: 10, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2978
|
+
{ no: 11, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2979
|
+
{ no: 13, name: "metered_aggregate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2980
|
+
{ no: 14, name: "tier_mode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2981
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
2982
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
2983
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
2984
|
+
]);
|
|
2985
|
+
|
|
2986
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Price {
|
|
2987
|
+
return new Price().fromBinary(bytes, options);
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Price {
|
|
2991
|
+
return new Price().fromJson(jsonValue, options);
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Price {
|
|
2995
|
+
return new Price().fromJsonString(jsonString, options);
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
static equals(a: Price | PlainMessage<Price> | undefined, b: Price | PlainMessage<Price> | undefined): boolean {
|
|
2999
|
+
return proto3.util.equals(Price, a, b);
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
/**
|
|
3004
|
+
* @generated from message raystack.frontier.v1beta1.BillingTransaction
|
|
3005
|
+
*/
|
|
3006
|
+
export class BillingTransaction extends Message<BillingTransaction> {
|
|
3007
|
+
/**
|
|
3008
|
+
* @generated from field: string id = 1;
|
|
3009
|
+
*/
|
|
3010
|
+
id = "";
|
|
3011
|
+
|
|
3012
|
+
/**
|
|
3013
|
+
* @generated from field: string customer_id = 2;
|
|
3014
|
+
*/
|
|
3015
|
+
customerId = "";
|
|
3016
|
+
|
|
3017
|
+
/**
|
|
3018
|
+
* additional metadata for storing event/service that triggered this usage
|
|
3019
|
+
*
|
|
3020
|
+
* @generated from field: string source = 3;
|
|
3021
|
+
*/
|
|
3022
|
+
source = "";
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
* @generated from field: int64 amount = 4;
|
|
3026
|
+
*/
|
|
3027
|
+
amount = protoInt64.zero;
|
|
3028
|
+
|
|
3029
|
+
/**
|
|
3030
|
+
* @generated from field: string type = 5;
|
|
3031
|
+
*/
|
|
3032
|
+
type = "";
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* @generated from field: string description = 6;
|
|
3036
|
+
*/
|
|
3037
|
+
description = "";
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* user_id is the user that triggered this usage
|
|
3041
|
+
*
|
|
3042
|
+
* @generated from field: string user_id = 7;
|
|
3043
|
+
*/
|
|
3044
|
+
userId = "";
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
3048
|
+
*/
|
|
3049
|
+
metadata?: Struct;
|
|
3050
|
+
|
|
3051
|
+
/**
|
|
3052
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
3053
|
+
*/
|
|
3054
|
+
createdAt?: Timestamp;
|
|
3055
|
+
|
|
3056
|
+
/**
|
|
3057
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
3058
|
+
*/
|
|
3059
|
+
updatedAt?: Timestamp;
|
|
3060
|
+
|
|
3061
|
+
/**
|
|
3062
|
+
* @generated from field: raystack.frontier.v1beta1.User user = 101;
|
|
3063
|
+
*/
|
|
3064
|
+
user?: User;
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* @generated from field: raystack.frontier.v1beta1.BillingAccount customer = 102;
|
|
3068
|
+
*/
|
|
3069
|
+
customer?: BillingAccount;
|
|
3070
|
+
|
|
3071
|
+
constructor(data?: PartialMessage<BillingTransaction>) {
|
|
3072
|
+
super();
|
|
3073
|
+
proto3.util.initPartial(data, this);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3077
|
+
static readonly typeName = "raystack.frontier.v1beta1.BillingTransaction";
|
|
3078
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3079
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3080
|
+
{ no: 2, name: "customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3081
|
+
{ no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3082
|
+
{ no: 4, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3083
|
+
{ no: 5, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3084
|
+
{ no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3085
|
+
{ no: 7, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3086
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
3087
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
3088
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
3089
|
+
{ no: 101, name: "user", kind: "message", T: User },
|
|
3090
|
+
{ no: 102, name: "customer", kind: "message", T: BillingAccount },
|
|
3091
|
+
]);
|
|
3092
|
+
|
|
3093
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillingTransaction {
|
|
3094
|
+
return new BillingTransaction().fromBinary(bytes, options);
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillingTransaction {
|
|
3098
|
+
return new BillingTransaction().fromJson(jsonValue, options);
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillingTransaction {
|
|
3102
|
+
return new BillingTransaction().fromJsonString(jsonString, options);
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
static equals(a: BillingTransaction | PlainMessage<BillingTransaction> | undefined, b: BillingTransaction | PlainMessage<BillingTransaction> | undefined): boolean {
|
|
3106
|
+
return proto3.util.equals(BillingTransaction, a, b);
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
/**
|
|
3111
|
+
* @generated from message raystack.frontier.v1beta1.Usage
|
|
3112
|
+
*/
|
|
3113
|
+
export class Usage extends Message<Usage> {
|
|
3114
|
+
/**
|
|
3115
|
+
* uuid used as an idempotent key
|
|
3116
|
+
*
|
|
3117
|
+
* @generated from field: string id = 1;
|
|
3118
|
+
*/
|
|
3119
|
+
id = "";
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* @generated from field: string customer_id = 2;
|
|
3123
|
+
*/
|
|
3124
|
+
customerId = "";
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* additional metadata for storing event/service that triggered this usage
|
|
3128
|
+
*
|
|
3129
|
+
* @generated from field: string source = 3;
|
|
3130
|
+
*/
|
|
3131
|
+
source = "";
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* @generated from field: string description = 4;
|
|
3135
|
+
*/
|
|
3136
|
+
description = "";
|
|
3137
|
+
|
|
3138
|
+
/**
|
|
3139
|
+
* Type is the type of usage, it can be credit or feature
|
|
3140
|
+
* if credit, the amount is the amount of credits that were consumed
|
|
3141
|
+
* if feature, the amount is the amount of features that were used
|
|
3142
|
+
*
|
|
3143
|
+
* @generated from field: string type = 5;
|
|
3144
|
+
*/
|
|
3145
|
+
type = "";
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* @generated from field: int64 amount = 6;
|
|
3149
|
+
*/
|
|
3150
|
+
amount = protoInt64.zero;
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* user_id is the user that triggered this usage
|
|
3154
|
+
*
|
|
3155
|
+
* @generated from field: string user_id = 7;
|
|
3156
|
+
*/
|
|
3157
|
+
userId = "";
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
3161
|
+
*/
|
|
3162
|
+
metadata?: Struct;
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
3166
|
+
*/
|
|
3167
|
+
createdAt?: Timestamp;
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
3171
|
+
*/
|
|
3172
|
+
updatedAt?: Timestamp;
|
|
3173
|
+
|
|
3174
|
+
constructor(data?: PartialMessage<Usage>) {
|
|
3175
|
+
super();
|
|
3176
|
+
proto3.util.initPartial(data, this);
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3180
|
+
static readonly typeName = "raystack.frontier.v1beta1.Usage";
|
|
3181
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3182
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3183
|
+
{ no: 2, name: "customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3184
|
+
{ no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3185
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3186
|
+
{ no: 5, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3187
|
+
{ no: 6, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3188
|
+
{ no: 7, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3189
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
3190
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
3191
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
3192
|
+
]);
|
|
3193
|
+
|
|
3194
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Usage {
|
|
3195
|
+
return new Usage().fromBinary(bytes, options);
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Usage {
|
|
3199
|
+
return new Usage().fromJson(jsonValue, options);
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Usage {
|
|
3203
|
+
return new Usage().fromJsonString(jsonString, options);
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
static equals(a: Usage | PlainMessage<Usage> | undefined, b: Usage | PlainMessage<Usage> | undefined): boolean {
|
|
3207
|
+
return proto3.util.equals(Usage, a, b);
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* @generated from message raystack.frontier.v1beta1.Invoice
|
|
3213
|
+
*/
|
|
3214
|
+
export class Invoice extends Message<Invoice> {
|
|
3215
|
+
/**
|
|
3216
|
+
* @generated from field: string id = 1;
|
|
3217
|
+
*/
|
|
3218
|
+
id = "";
|
|
3219
|
+
|
|
3220
|
+
/**
|
|
3221
|
+
* @generated from field: string customer_id = 2;
|
|
3222
|
+
*/
|
|
3223
|
+
customerId = "";
|
|
3224
|
+
|
|
3225
|
+
/**
|
|
3226
|
+
* @generated from field: string provider_id = 3;
|
|
3227
|
+
*/
|
|
3228
|
+
providerId = "";
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* @generated from field: string state = 4;
|
|
3232
|
+
*/
|
|
3233
|
+
state = "";
|
|
3234
|
+
|
|
3235
|
+
/**
|
|
3236
|
+
* @generated from field: string currency = 5;
|
|
3237
|
+
*/
|
|
3238
|
+
currency = "";
|
|
3239
|
+
|
|
3240
|
+
/**
|
|
3241
|
+
* @generated from field: int64 amount = 6;
|
|
3242
|
+
*/
|
|
3243
|
+
amount = protoInt64.zero;
|
|
3244
|
+
|
|
3245
|
+
/**
|
|
3246
|
+
* @generated from field: string hosted_url = 7;
|
|
3247
|
+
*/
|
|
3248
|
+
hostedUrl = "";
|
|
3249
|
+
|
|
3250
|
+
/**
|
|
3251
|
+
* The date on which payment for this invoice is due
|
|
3252
|
+
*
|
|
3253
|
+
* @generated from field: google.protobuf.Timestamp due_date = 8;
|
|
3254
|
+
*/
|
|
3255
|
+
dueDate?: Timestamp;
|
|
3256
|
+
|
|
3257
|
+
/**
|
|
3258
|
+
* The date when this invoice is in effect.
|
|
3259
|
+
*
|
|
3260
|
+
* @generated from field: google.protobuf.Timestamp effective_at = 9;
|
|
3261
|
+
*/
|
|
3262
|
+
effectiveAt?: Timestamp;
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* @generated from field: google.protobuf.Timestamp period_start_at = 10;
|
|
3266
|
+
*/
|
|
3267
|
+
periodStartAt?: Timestamp;
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* @generated from field: google.protobuf.Timestamp period_end_at = 11;
|
|
3271
|
+
*/
|
|
3272
|
+
periodEndAt?: Timestamp;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
3276
|
+
*/
|
|
3277
|
+
metadata?: Struct;
|
|
3278
|
+
|
|
3279
|
+
/**
|
|
3280
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
3281
|
+
*/
|
|
3282
|
+
createdAt?: Timestamp;
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* @generated from field: raystack.frontier.v1beta1.BillingAccount customer = 101;
|
|
3286
|
+
*/
|
|
3287
|
+
customer?: BillingAccount;
|
|
3288
|
+
|
|
3289
|
+
constructor(data?: PartialMessage<Invoice>) {
|
|
3290
|
+
super();
|
|
3291
|
+
proto3.util.initPartial(data, this);
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3295
|
+
static readonly typeName = "raystack.frontier.v1beta1.Invoice";
|
|
3296
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3297
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3298
|
+
{ no: 2, name: "customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3299
|
+
{ no: 3, name: "provider_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3300
|
+
{ no: 4, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3301
|
+
{ no: 5, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3302
|
+
{ no: 6, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3303
|
+
{ no: 7, name: "hosted_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3304
|
+
{ no: 8, name: "due_date", kind: "message", T: Timestamp },
|
|
3305
|
+
{ no: 9, name: "effective_at", kind: "message", T: Timestamp },
|
|
3306
|
+
{ no: 10, name: "period_start_at", kind: "message", T: Timestamp },
|
|
3307
|
+
{ no: 11, name: "period_end_at", kind: "message", T: Timestamp },
|
|
3308
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
3309
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
3310
|
+
{ no: 101, name: "customer", kind: "message", T: BillingAccount },
|
|
3311
|
+
]);
|
|
3312
|
+
|
|
3313
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invoice {
|
|
3314
|
+
return new Invoice().fromBinary(bytes, options);
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invoice {
|
|
3318
|
+
return new Invoice().fromJson(jsonValue, options);
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invoice {
|
|
3322
|
+
return new Invoice().fromJsonString(jsonString, options);
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
static equals(a: Invoice | PlainMessage<Invoice> | undefined, b: Invoice | PlainMessage<Invoice> | undefined): boolean {
|
|
3326
|
+
return proto3.util.equals(Invoice, a, b);
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
/**
|
|
3331
|
+
* @generated from message raystack.frontier.v1beta1.PaymentMethod
|
|
3332
|
+
*/
|
|
3333
|
+
export class PaymentMethod extends Message<PaymentMethod> {
|
|
3334
|
+
/**
|
|
3335
|
+
* @generated from field: string id = 1;
|
|
3336
|
+
*/
|
|
3337
|
+
id = "";
|
|
3338
|
+
|
|
3339
|
+
/**
|
|
3340
|
+
* @generated from field: string customer_id = 2;
|
|
3341
|
+
*/
|
|
3342
|
+
customerId = "";
|
|
3343
|
+
|
|
3344
|
+
/**
|
|
3345
|
+
* @generated from field: string provider_id = 3;
|
|
3346
|
+
*/
|
|
3347
|
+
providerId = "";
|
|
3348
|
+
|
|
3349
|
+
/**
|
|
3350
|
+
* @generated from field: string type = 4;
|
|
3351
|
+
*/
|
|
3352
|
+
type = "";
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* @generated from field: string card_brand = 15;
|
|
3356
|
+
*/
|
|
3357
|
+
cardBrand = "";
|
|
3358
|
+
|
|
3359
|
+
/**
|
|
3360
|
+
* @generated from field: string card_last4 = 16;
|
|
3361
|
+
*/
|
|
3362
|
+
cardLast4 = "";
|
|
3363
|
+
|
|
3364
|
+
/**
|
|
3365
|
+
* @generated from field: int64 card_expiry_month = 17;
|
|
3366
|
+
*/
|
|
3367
|
+
cardExpiryMonth = protoInt64.zero;
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* @generated from field: int64 card_expiry_year = 18;
|
|
3371
|
+
*/
|
|
3372
|
+
cardExpiryYear = protoInt64.zero;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
3376
|
+
*/
|
|
3377
|
+
metadata?: Struct;
|
|
3378
|
+
|
|
3379
|
+
/**
|
|
3380
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
3381
|
+
*/
|
|
3382
|
+
createdAt?: Timestamp;
|
|
3383
|
+
|
|
3384
|
+
constructor(data?: PartialMessage<PaymentMethod>) {
|
|
3385
|
+
super();
|
|
3386
|
+
proto3.util.initPartial(data, this);
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3390
|
+
static readonly typeName = "raystack.frontier.v1beta1.PaymentMethod";
|
|
3391
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3392
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3393
|
+
{ no: 2, name: "customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3394
|
+
{ no: 3, name: "provider_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3395
|
+
{ no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3396
|
+
{ no: 15, name: "card_brand", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3397
|
+
{ no: 16, name: "card_last4", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3398
|
+
{ no: 17, name: "card_expiry_month", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3399
|
+
{ no: 18, name: "card_expiry_year", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3400
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
3401
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
3402
|
+
]);
|
|
3403
|
+
|
|
3404
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymentMethod {
|
|
3405
|
+
return new PaymentMethod().fromBinary(bytes, options);
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymentMethod {
|
|
3409
|
+
return new PaymentMethod().fromJson(jsonValue, options);
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymentMethod {
|
|
3413
|
+
return new PaymentMethod().fromJsonString(jsonString, options);
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
static equals(a: PaymentMethod | PlainMessage<PaymentMethod> | undefined, b: PaymentMethod | PlainMessage<PaymentMethod> | undefined): boolean {
|
|
3417
|
+
return proto3.util.equals(PaymentMethod, a, b);
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
/**
|
|
3422
|
+
* @generated from message raystack.frontier.v1beta1.Webhook
|
|
3423
|
+
*/
|
|
3424
|
+
export class Webhook extends Message<Webhook> {
|
|
3425
|
+
/**
|
|
3426
|
+
* @generated from field: string id = 1;
|
|
3427
|
+
*/
|
|
3428
|
+
id = "";
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* @generated from field: string description = 2;
|
|
3432
|
+
*/
|
|
3433
|
+
description = "";
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* @generated from field: string url = 3;
|
|
3437
|
+
*/
|
|
3438
|
+
url = "";
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* @generated from field: repeated string subscribed_events = 4;
|
|
3442
|
+
*/
|
|
3443
|
+
subscribedEvents: string[] = [];
|
|
3444
|
+
|
|
3445
|
+
/**
|
|
3446
|
+
* headers to be sent with the webhook
|
|
3447
|
+
*
|
|
3448
|
+
* @generated from field: map<string, string> headers = 5;
|
|
3449
|
+
*/
|
|
3450
|
+
headers: { [key: string]: string } = {};
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* secret to sign the payload, there could be multiple enabled secrets for a webhook
|
|
3454
|
+
* but only one will be used to sign the payload, this is useful for rotating secrets
|
|
3455
|
+
*
|
|
3456
|
+
* @generated from field: repeated raystack.frontier.v1beta1.Webhook.Secret secrets = 6;
|
|
3457
|
+
*/
|
|
3458
|
+
secrets: Webhook_Secret[] = [];
|
|
3459
|
+
|
|
3460
|
+
/**
|
|
3461
|
+
* @generated from field: string state = 7;
|
|
3462
|
+
*/
|
|
3463
|
+
state = "";
|
|
3464
|
+
|
|
3465
|
+
/**
|
|
3466
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
3467
|
+
*/
|
|
3468
|
+
metadata?: Struct;
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
3472
|
+
*/
|
|
3473
|
+
createdAt?: Timestamp;
|
|
3474
|
+
|
|
3475
|
+
/**
|
|
3476
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 22;
|
|
3477
|
+
*/
|
|
3478
|
+
updatedAt?: Timestamp;
|
|
3479
|
+
|
|
3480
|
+
constructor(data?: PartialMessage<Webhook>) {
|
|
3481
|
+
super();
|
|
3482
|
+
proto3.util.initPartial(data, this);
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3486
|
+
static readonly typeName = "raystack.frontier.v1beta1.Webhook";
|
|
3487
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3488
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3489
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3490
|
+
{ no: 3, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3491
|
+
{ no: 4, name: "subscribed_events", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3492
|
+
{ no: 5, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
3493
|
+
{ no: 6, name: "secrets", kind: "message", T: Webhook_Secret, repeated: true },
|
|
3494
|
+
{ no: 7, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3495
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
3496
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
3497
|
+
{ no: 22, name: "updated_at", kind: "message", T: Timestamp },
|
|
3498
|
+
]);
|
|
3499
|
+
|
|
3500
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Webhook {
|
|
3501
|
+
return new Webhook().fromBinary(bytes, options);
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Webhook {
|
|
3505
|
+
return new Webhook().fromJson(jsonValue, options);
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Webhook {
|
|
3509
|
+
return new Webhook().fromJsonString(jsonString, options);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
static equals(a: Webhook | PlainMessage<Webhook> | undefined, b: Webhook | PlainMessage<Webhook> | undefined): boolean {
|
|
3513
|
+
return proto3.util.equals(Webhook, a, b);
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* @generated from message raystack.frontier.v1beta1.Webhook.Secret
|
|
3519
|
+
*/
|
|
3520
|
+
export class Webhook_Secret extends Message<Webhook_Secret> {
|
|
3521
|
+
/**
|
|
3522
|
+
* @generated from field: string id = 1;
|
|
3523
|
+
*/
|
|
3524
|
+
id = "";
|
|
3525
|
+
|
|
3526
|
+
/**
|
|
3527
|
+
* @generated from field: string value = 2;
|
|
3528
|
+
*/
|
|
3529
|
+
value = "";
|
|
3530
|
+
|
|
3531
|
+
constructor(data?: PartialMessage<Webhook_Secret>) {
|
|
3532
|
+
super();
|
|
3533
|
+
proto3.util.initPartial(data, this);
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3537
|
+
static readonly typeName = "raystack.frontier.v1beta1.Webhook.Secret";
|
|
3538
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3539
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3540
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3541
|
+
]);
|
|
3542
|
+
|
|
3543
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Webhook_Secret {
|
|
3544
|
+
return new Webhook_Secret().fromBinary(bytes, options);
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Webhook_Secret {
|
|
3548
|
+
return new Webhook_Secret().fromJson(jsonValue, options);
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Webhook_Secret {
|
|
3552
|
+
return new Webhook_Secret().fromJsonString(jsonString, options);
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
static equals(a: Webhook_Secret | PlainMessage<Webhook_Secret> | undefined, b: Webhook_Secret | PlainMessage<Webhook_Secret> | undefined): boolean {
|
|
3556
|
+
return proto3.util.equals(Webhook_Secret, a, b);
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* @generated from message raystack.frontier.v1beta1.WebhookEvent
|
|
3562
|
+
*/
|
|
3563
|
+
export class WebhookEvent extends Message<WebhookEvent> {
|
|
3564
|
+
/**
|
|
3565
|
+
* @generated from field: string id = 1;
|
|
3566
|
+
*/
|
|
3567
|
+
id = "";
|
|
3568
|
+
|
|
3569
|
+
/**
|
|
3570
|
+
* @generated from field: string action = 2;
|
|
3571
|
+
*/
|
|
3572
|
+
action = "";
|
|
3573
|
+
|
|
3574
|
+
/**
|
|
3575
|
+
* @generated from field: google.protobuf.Struct data = 3;
|
|
3576
|
+
*/
|
|
3577
|
+
data?: Struct;
|
|
3578
|
+
|
|
3579
|
+
/**
|
|
3580
|
+
* @generated from field: google.protobuf.Struct metadata = 20;
|
|
3581
|
+
*/
|
|
3582
|
+
metadata?: Struct;
|
|
3583
|
+
|
|
3584
|
+
/**
|
|
3585
|
+
* @generated from field: google.protobuf.Timestamp created_at = 21;
|
|
3586
|
+
*/
|
|
3587
|
+
createdAt?: Timestamp;
|
|
3588
|
+
|
|
3589
|
+
constructor(data?: PartialMessage<WebhookEvent>) {
|
|
3590
|
+
super();
|
|
3591
|
+
proto3.util.initPartial(data, this);
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3595
|
+
static readonly typeName = "raystack.frontier.v1beta1.WebhookEvent";
|
|
3596
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3597
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3598
|
+
{ no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3599
|
+
{ no: 3, name: "data", kind: "message", T: Struct },
|
|
3600
|
+
{ no: 20, name: "metadata", kind: "message", T: Struct },
|
|
3601
|
+
{ no: 21, name: "created_at", kind: "message", T: Timestamp },
|
|
3602
|
+
]);
|
|
3603
|
+
|
|
3604
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebhookEvent {
|
|
3605
|
+
return new WebhookEvent().fromBinary(bytes, options);
|
|
3606
|
+
}
|
|
3607
|
+
|
|
3608
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebhookEvent {
|
|
3609
|
+
return new WebhookEvent().fromJson(jsonValue, options);
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebhookEvent {
|
|
3613
|
+
return new WebhookEvent().fromJsonString(jsonString, options);
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
static equals(a: WebhookEvent | PlainMessage<WebhookEvent> | undefined, b: WebhookEvent | PlainMessage<WebhookEvent> | undefined): boolean {
|
|
3617
|
+
return proto3.util.equals(WebhookEvent, a, b);
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* @generated from message raystack.frontier.v1beta1.RoleRequestBody
|
|
3623
|
+
*/
|
|
3624
|
+
export class RoleRequestBody extends Message<RoleRequestBody> {
|
|
3625
|
+
/**
|
|
3626
|
+
* @generated from field: string name = 2;
|
|
3627
|
+
*/
|
|
3628
|
+
name = "";
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* @generated from field: repeated string permissions = 3;
|
|
3632
|
+
*/
|
|
3633
|
+
permissions: string[] = [];
|
|
3634
|
+
|
|
3635
|
+
/**
|
|
3636
|
+
* @generated from field: google.protobuf.Struct metadata = 5;
|
|
3637
|
+
*/
|
|
3638
|
+
metadata?: Struct;
|
|
3639
|
+
|
|
3640
|
+
/**
|
|
3641
|
+
* @generated from field: string title = 6;
|
|
3642
|
+
*/
|
|
3643
|
+
title = "";
|
|
3644
|
+
|
|
3645
|
+
/**
|
|
3646
|
+
* @generated from field: repeated string scopes = 7;
|
|
3647
|
+
*/
|
|
3648
|
+
scopes: string[] = [];
|
|
3649
|
+
|
|
3650
|
+
constructor(data?: PartialMessage<RoleRequestBody>) {
|
|
3651
|
+
super();
|
|
3652
|
+
proto3.util.initPartial(data, this);
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3656
|
+
static readonly typeName = "raystack.frontier.v1beta1.RoleRequestBody";
|
|
3657
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3658
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3659
|
+
{ no: 3, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3660
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct },
|
|
3661
|
+
{ no: 6, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3662
|
+
{ no: 7, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3663
|
+
]);
|
|
3664
|
+
|
|
3665
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoleRequestBody {
|
|
3666
|
+
return new RoleRequestBody().fromBinary(bytes, options);
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoleRequestBody {
|
|
3670
|
+
return new RoleRequestBody().fromJson(jsonValue, options);
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoleRequestBody {
|
|
3674
|
+
return new RoleRequestBody().fromJsonString(jsonString, options);
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
static equals(a: RoleRequestBody | PlainMessage<RoleRequestBody> | undefined, b: RoleRequestBody | PlainMessage<RoleRequestBody> | undefined): boolean {
|
|
3678
|
+
return proto3.util.equals(RoleRequestBody, a, b);
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* @generated from message raystack.frontier.v1beta1.PreferenceRequestBody
|
|
3684
|
+
*/
|
|
3685
|
+
export class PreferenceRequestBody extends Message<PreferenceRequestBody> {
|
|
3686
|
+
/**
|
|
3687
|
+
* @generated from field: string name = 2;
|
|
3688
|
+
*/
|
|
3689
|
+
name = "";
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* @generated from field: string value = 3;
|
|
3693
|
+
*/
|
|
3694
|
+
value = "";
|
|
3695
|
+
|
|
3696
|
+
constructor(data?: PartialMessage<PreferenceRequestBody>) {
|
|
3697
|
+
super();
|
|
3698
|
+
proto3.util.initPartial(data, this);
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3702
|
+
static readonly typeName = "raystack.frontier.v1beta1.PreferenceRequestBody";
|
|
3703
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3704
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3705
|
+
{ no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3706
|
+
]);
|
|
3707
|
+
|
|
3708
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PreferenceRequestBody {
|
|
3709
|
+
return new PreferenceRequestBody().fromBinary(bytes, options);
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PreferenceRequestBody {
|
|
3713
|
+
return new PreferenceRequestBody().fromJson(jsonValue, options);
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PreferenceRequestBody {
|
|
3717
|
+
return new PreferenceRequestBody().fromJsonString(jsonString, options);
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
static equals(a: PreferenceRequestBody | PlainMessage<PreferenceRequestBody> | undefined, b: PreferenceRequestBody | PlainMessage<PreferenceRequestBody> | undefined): boolean {
|
|
3721
|
+
return proto3.util.equals(PreferenceRequestBody, a, b);
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
/**
|
|
3726
|
+
* @generated from message raystack.frontier.v1beta1.CheckoutSubscriptionBody
|
|
3727
|
+
*/
|
|
3728
|
+
export class CheckoutSubscriptionBody extends Message<CheckoutSubscriptionBody> {
|
|
3729
|
+
/**
|
|
3730
|
+
* @generated from field: string plan = 1;
|
|
3731
|
+
*/
|
|
3732
|
+
plan = "";
|
|
3733
|
+
|
|
3734
|
+
/**
|
|
3735
|
+
* @generated from field: bool skip_trial = 2;
|
|
3736
|
+
*/
|
|
3737
|
+
skipTrial = false;
|
|
3738
|
+
|
|
3739
|
+
/**
|
|
3740
|
+
* @generated from field: bool cancel_after_trial = 3;
|
|
3741
|
+
*/
|
|
3742
|
+
cancelAfterTrial = false;
|
|
3743
|
+
|
|
3744
|
+
/**
|
|
3745
|
+
* provider_coupon_id is the coupon code that will be applied to the subscription
|
|
3746
|
+
* generated by the billing provider, this will be deprecated once coupons are
|
|
3747
|
+
* managed by the platform
|
|
3748
|
+
*
|
|
3749
|
+
* @generated from field: string provider_coupon_id = 4;
|
|
3750
|
+
*/
|
|
3751
|
+
providerCouponId = "";
|
|
3752
|
+
|
|
3753
|
+
constructor(data?: PartialMessage<CheckoutSubscriptionBody>) {
|
|
3754
|
+
super();
|
|
3755
|
+
proto3.util.initPartial(data, this);
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3759
|
+
static readonly typeName = "raystack.frontier.v1beta1.CheckoutSubscriptionBody";
|
|
3760
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3761
|
+
{ no: 1, name: "plan", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3762
|
+
{ no: 2, name: "skip_trial", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3763
|
+
{ no: 3, name: "cancel_after_trial", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3764
|
+
{ no: 4, name: "provider_coupon_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3765
|
+
]);
|
|
3766
|
+
|
|
3767
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckoutSubscriptionBody {
|
|
3768
|
+
return new CheckoutSubscriptionBody().fromBinary(bytes, options);
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3771
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckoutSubscriptionBody {
|
|
3772
|
+
return new CheckoutSubscriptionBody().fromJson(jsonValue, options);
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckoutSubscriptionBody {
|
|
3776
|
+
return new CheckoutSubscriptionBody().fromJsonString(jsonString, options);
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
static equals(a: CheckoutSubscriptionBody | PlainMessage<CheckoutSubscriptionBody> | undefined, b: CheckoutSubscriptionBody | PlainMessage<CheckoutSubscriptionBody> | undefined): boolean {
|
|
3780
|
+
return proto3.util.equals(CheckoutSubscriptionBody, a, b);
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* @generated from message raystack.frontier.v1beta1.CheckoutProductBody
|
|
3786
|
+
*/
|
|
3787
|
+
export class CheckoutProductBody extends Message<CheckoutProductBody> {
|
|
3788
|
+
/**
|
|
3789
|
+
* @generated from field: string product = 1;
|
|
3790
|
+
*/
|
|
3791
|
+
product = "";
|
|
3792
|
+
|
|
3793
|
+
/**
|
|
3794
|
+
* @generated from field: int64 quantity = 2;
|
|
3795
|
+
*/
|
|
3796
|
+
quantity = protoInt64.zero;
|
|
3797
|
+
|
|
3798
|
+
constructor(data?: PartialMessage<CheckoutProductBody>) {
|
|
3799
|
+
super();
|
|
3800
|
+
proto3.util.initPartial(data, this);
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3804
|
+
static readonly typeName = "raystack.frontier.v1beta1.CheckoutProductBody";
|
|
3805
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3806
|
+
{ no: 1, name: "product", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3807
|
+
{ no: 2, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3808
|
+
]);
|
|
3809
|
+
|
|
3810
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckoutProductBody {
|
|
3811
|
+
return new CheckoutProductBody().fromBinary(bytes, options);
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckoutProductBody {
|
|
3815
|
+
return new CheckoutProductBody().fromJson(jsonValue, options);
|
|
3816
|
+
}
|
|
3817
|
+
|
|
3818
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckoutProductBody {
|
|
3819
|
+
return new CheckoutProductBody().fromJsonString(jsonString, options);
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
static equals(a: CheckoutProductBody | PlainMessage<CheckoutProductBody> | undefined, b: CheckoutProductBody | PlainMessage<CheckoutProductBody> | undefined): boolean {
|
|
3823
|
+
return proto3.util.equals(CheckoutProductBody, a, b);
|
|
3824
|
+
}
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
* @generated from message raystack.frontier.v1beta1.CheckoutSetupBody
|
|
3829
|
+
*/
|
|
3830
|
+
export class CheckoutSetupBody extends Message<CheckoutSetupBody> {
|
|
3831
|
+
/**
|
|
3832
|
+
* @generated from field: bool payment_method = 1;
|
|
3833
|
+
*/
|
|
3834
|
+
paymentMethod = false;
|
|
3835
|
+
|
|
3836
|
+
/**
|
|
3837
|
+
* @generated from field: bool customer_portal = 2;
|
|
3838
|
+
*/
|
|
3839
|
+
customerPortal = false;
|
|
3840
|
+
|
|
3841
|
+
constructor(data?: PartialMessage<CheckoutSetupBody>) {
|
|
3842
|
+
super();
|
|
3843
|
+
proto3.util.initPartial(data, this);
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3847
|
+
static readonly typeName = "raystack.frontier.v1beta1.CheckoutSetupBody";
|
|
3848
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3849
|
+
{ no: 1, name: "payment_method", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3850
|
+
{ no: 2, name: "customer_portal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3851
|
+
]);
|
|
3852
|
+
|
|
3853
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckoutSetupBody {
|
|
3854
|
+
return new CheckoutSetupBody().fromBinary(bytes, options);
|
|
3855
|
+
}
|
|
3856
|
+
|
|
3857
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckoutSetupBody {
|
|
3858
|
+
return new CheckoutSetupBody().fromJson(jsonValue, options);
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3861
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckoutSetupBody {
|
|
3862
|
+
return new CheckoutSetupBody().fromJsonString(jsonString, options);
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
static equals(a: CheckoutSetupBody | PlainMessage<CheckoutSetupBody> | undefined, b: CheckoutSetupBody | PlainMessage<CheckoutSetupBody> | undefined): boolean {
|
|
3866
|
+
return proto3.util.equals(CheckoutSetupBody, a, b);
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* @generated from message raystack.frontier.v1beta1.Prospect
|
|
3872
|
+
*/
|
|
3873
|
+
export class Prospect extends Message<Prospect> {
|
|
3874
|
+
/**
|
|
3875
|
+
* @generated from field: string id = 1;
|
|
3876
|
+
*/
|
|
3877
|
+
id = "";
|
|
3878
|
+
|
|
3879
|
+
/**
|
|
3880
|
+
* @generated from field: string name = 5;
|
|
3881
|
+
*/
|
|
3882
|
+
name = "";
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* @generated from field: string email = 8;
|
|
3886
|
+
*/
|
|
3887
|
+
email = "";
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* @generated from field: string phone = 10;
|
|
3891
|
+
*/
|
|
3892
|
+
phone = "";
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* @generated from field: string activity = 15;
|
|
3896
|
+
*/
|
|
3897
|
+
activity = "";
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* @generated from field: raystack.frontier.v1beta1.Prospect.Status status = 20;
|
|
3901
|
+
*/
|
|
3902
|
+
status = Prospect_Status.UNSPECIFIED;
|
|
3903
|
+
|
|
3904
|
+
/**
|
|
3905
|
+
* @generated from field: google.protobuf.Timestamp changed_at = 21;
|
|
3906
|
+
*/
|
|
3907
|
+
changedAt?: Timestamp;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* @generated from field: string source = 25;
|
|
3911
|
+
*/
|
|
3912
|
+
source = "";
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* @generated from field: bool verified = 27;
|
|
3916
|
+
*/
|
|
3917
|
+
verified = false;
|
|
3918
|
+
|
|
3919
|
+
/**
|
|
3920
|
+
* @generated from field: google.protobuf.Timestamp created_at = 30;
|
|
3921
|
+
*/
|
|
3922
|
+
createdAt?: Timestamp;
|
|
3923
|
+
|
|
3924
|
+
/**
|
|
3925
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 31;
|
|
3926
|
+
*/
|
|
3927
|
+
updatedAt?: Timestamp;
|
|
3928
|
+
|
|
3929
|
+
/**
|
|
3930
|
+
* @generated from field: google.protobuf.Struct metadata = 35;
|
|
3931
|
+
*/
|
|
3932
|
+
metadata?: Struct;
|
|
3933
|
+
|
|
3934
|
+
constructor(data?: PartialMessage<Prospect>) {
|
|
3935
|
+
super();
|
|
3936
|
+
proto3.util.initPartial(data, this);
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3940
|
+
static readonly typeName = "raystack.frontier.v1beta1.Prospect";
|
|
3941
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3942
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3943
|
+
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3944
|
+
{ no: 8, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3945
|
+
{ no: 10, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3946
|
+
{ no: 15, name: "activity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3947
|
+
{ no: 20, name: "status", kind: "enum", T: proto3.getEnumType(Prospect_Status) },
|
|
3948
|
+
{ no: 21, name: "changed_at", kind: "message", T: Timestamp },
|
|
3949
|
+
{ no: 25, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3950
|
+
{ no: 27, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3951
|
+
{ no: 30, name: "created_at", kind: "message", T: Timestamp },
|
|
3952
|
+
{ no: 31, name: "updated_at", kind: "message", T: Timestamp },
|
|
3953
|
+
{ no: 35, name: "metadata", kind: "message", T: Struct },
|
|
3954
|
+
]);
|
|
3955
|
+
|
|
3956
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Prospect {
|
|
3957
|
+
return new Prospect().fromBinary(bytes, options);
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Prospect {
|
|
3961
|
+
return new Prospect().fromJson(jsonValue, options);
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Prospect {
|
|
3965
|
+
return new Prospect().fromJsonString(jsonString, options);
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
static equals(a: Prospect | PlainMessage<Prospect> | undefined, b: Prospect | PlainMessage<Prospect> | undefined): boolean {
|
|
3969
|
+
return proto3.util.equals(Prospect, a, b);
|
|
3970
|
+
}
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
/**
|
|
3974
|
+
* subscription status
|
|
3975
|
+
*
|
|
3976
|
+
* @generated from enum raystack.frontier.v1beta1.Prospect.Status
|
|
3977
|
+
*/
|
|
3978
|
+
export enum Prospect_Status {
|
|
3979
|
+
/**
|
|
3980
|
+
* @generated from enum value: STATUS_UNSPECIFIED = 0;
|
|
3981
|
+
*/
|
|
3982
|
+
UNSPECIFIED = 0,
|
|
3983
|
+
|
|
3984
|
+
/**
|
|
3985
|
+
* @generated from enum value: STATUS_UNSUBSCRIBED = 1;
|
|
3986
|
+
*/
|
|
3987
|
+
UNSUBSCRIBED = 1,
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
* @generated from enum value: STATUS_SUBSCRIBED = 2;
|
|
3991
|
+
*/
|
|
3992
|
+
SUBSCRIBED = 2,
|
|
3993
|
+
}
|
|
3994
|
+
// Retrieve enum metadata with: proto3.getEnumType(Prospect_Status)
|
|
3995
|
+
proto3.util.setEnumType(Prospect_Status, "raystack.frontier.v1beta1.Prospect.Status", [
|
|
3996
|
+
{ no: 0, name: "STATUS_UNSPECIFIED" },
|
|
3997
|
+
{ no: 1, name: "STATUS_UNSUBSCRIBED" },
|
|
3998
|
+
{ no: 2, name: "STATUS_SUBSCRIBED" },
|
|
3999
|
+
]);
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* @generated from message raystack.frontier.v1beta1.RQLRequest
|
|
4003
|
+
*/
|
|
4004
|
+
export class RQLRequest extends Message<RQLRequest> {
|
|
4005
|
+
/**
|
|
4006
|
+
* @generated from field: repeated raystack.frontier.v1beta1.RQLFilter filters = 1;
|
|
4007
|
+
*/
|
|
4008
|
+
filters: RQLFilter[] = [];
|
|
4009
|
+
|
|
4010
|
+
/**
|
|
4011
|
+
* @generated from field: repeated string group_by = 2;
|
|
4012
|
+
*/
|
|
4013
|
+
groupBy: string[] = [];
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* @generated from field: uint32 offset = 3;
|
|
4017
|
+
*/
|
|
4018
|
+
offset = 0;
|
|
4019
|
+
|
|
4020
|
+
/**
|
|
4021
|
+
* @generated from field: uint32 limit = 4;
|
|
4022
|
+
*/
|
|
4023
|
+
limit = 0;
|
|
4024
|
+
|
|
4025
|
+
/**
|
|
4026
|
+
* @generated from field: string search = 5;
|
|
4027
|
+
*/
|
|
4028
|
+
search = "";
|
|
4029
|
+
|
|
4030
|
+
/**
|
|
4031
|
+
* @generated from field: repeated raystack.frontier.v1beta1.RQLSort sort = 6;
|
|
4032
|
+
*/
|
|
4033
|
+
sort: RQLSort[] = [];
|
|
4034
|
+
|
|
4035
|
+
constructor(data?: PartialMessage<RQLRequest>) {
|
|
4036
|
+
super();
|
|
4037
|
+
proto3.util.initPartial(data, this);
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4041
|
+
static readonly typeName = "raystack.frontier.v1beta1.RQLRequest";
|
|
4042
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4043
|
+
{ no: 1, name: "filters", kind: "message", T: RQLFilter, repeated: true },
|
|
4044
|
+
{ no: 2, name: "group_by", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
4045
|
+
{ no: 3, name: "offset", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
4046
|
+
{ no: 4, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
4047
|
+
{ no: 5, name: "search", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4048
|
+
{ no: 6, name: "sort", kind: "message", T: RQLSort, repeated: true },
|
|
4049
|
+
]);
|
|
4050
|
+
|
|
4051
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RQLRequest {
|
|
4052
|
+
return new RQLRequest().fromBinary(bytes, options);
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RQLRequest {
|
|
4056
|
+
return new RQLRequest().fromJson(jsonValue, options);
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RQLRequest {
|
|
4060
|
+
return new RQLRequest().fromJsonString(jsonString, options);
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
static equals(a: RQLRequest | PlainMessage<RQLRequest> | undefined, b: RQLRequest | PlainMessage<RQLRequest> | undefined): boolean {
|
|
4064
|
+
return proto3.util.equals(RQLRequest, a, b);
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
/**
|
|
4069
|
+
* @generated from message raystack.frontier.v1beta1.RQLFilter
|
|
4070
|
+
*/
|
|
4071
|
+
export class RQLFilter extends Message<RQLFilter> {
|
|
4072
|
+
/**
|
|
4073
|
+
* @generated from field: string name = 1;
|
|
4074
|
+
*/
|
|
4075
|
+
name = "";
|
|
4076
|
+
|
|
4077
|
+
/**
|
|
4078
|
+
* @generated from field: string operator = 2;
|
|
4079
|
+
*/
|
|
4080
|
+
operator = "";
|
|
4081
|
+
|
|
4082
|
+
/**
|
|
4083
|
+
* @generated from oneof raystack.frontier.v1beta1.RQLFilter.value
|
|
4084
|
+
*/
|
|
4085
|
+
value: {
|
|
4086
|
+
/**
|
|
4087
|
+
* @generated from field: bool bool_value = 3;
|
|
4088
|
+
*/
|
|
4089
|
+
value: boolean;
|
|
4090
|
+
case: "boolValue";
|
|
4091
|
+
} | {
|
|
4092
|
+
/**
|
|
4093
|
+
* @generated from field: string string_value = 4;
|
|
4094
|
+
*/
|
|
4095
|
+
value: string;
|
|
4096
|
+
case: "stringValue";
|
|
4097
|
+
} | {
|
|
4098
|
+
/**
|
|
4099
|
+
* @generated from field: float number_value = 5;
|
|
4100
|
+
*/
|
|
4101
|
+
value: number;
|
|
4102
|
+
case: "numberValue";
|
|
4103
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
4104
|
+
|
|
4105
|
+
constructor(data?: PartialMessage<RQLFilter>) {
|
|
4106
|
+
super();
|
|
4107
|
+
proto3.util.initPartial(data, this);
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4111
|
+
static readonly typeName = "raystack.frontier.v1beta1.RQLFilter";
|
|
4112
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4113
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4114
|
+
{ no: 2, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4115
|
+
{ no: 3, name: "bool_value", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" },
|
|
4116
|
+
{ no: 4, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
|
|
4117
|
+
{ no: 5, name: "number_value", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "value" },
|
|
4118
|
+
]);
|
|
4119
|
+
|
|
4120
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RQLFilter {
|
|
4121
|
+
return new RQLFilter().fromBinary(bytes, options);
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RQLFilter {
|
|
4125
|
+
return new RQLFilter().fromJson(jsonValue, options);
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RQLFilter {
|
|
4129
|
+
return new RQLFilter().fromJsonString(jsonString, options);
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
static equals(a: RQLFilter | PlainMessage<RQLFilter> | undefined, b: RQLFilter | PlainMessage<RQLFilter> | undefined): boolean {
|
|
4133
|
+
return proto3.util.equals(RQLFilter, a, b);
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
/**
|
|
4138
|
+
* @generated from message raystack.frontier.v1beta1.RQLSort
|
|
4139
|
+
*/
|
|
4140
|
+
export class RQLSort extends Message<RQLSort> {
|
|
4141
|
+
/**
|
|
4142
|
+
* @generated from field: string name = 1;
|
|
4143
|
+
*/
|
|
4144
|
+
name = "";
|
|
4145
|
+
|
|
4146
|
+
/**
|
|
4147
|
+
* @generated from field: string order = 2;
|
|
4148
|
+
*/
|
|
4149
|
+
order = "";
|
|
4150
|
+
|
|
4151
|
+
constructor(data?: PartialMessage<RQLSort>) {
|
|
4152
|
+
super();
|
|
4153
|
+
proto3.util.initPartial(data, this);
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4157
|
+
static readonly typeName = "raystack.frontier.v1beta1.RQLSort";
|
|
4158
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4159
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4160
|
+
{ no: 2, name: "order", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4161
|
+
]);
|
|
4162
|
+
|
|
4163
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RQLSort {
|
|
4164
|
+
return new RQLSort().fromBinary(bytes, options);
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RQLSort {
|
|
4168
|
+
return new RQLSort().fromJson(jsonValue, options);
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RQLSort {
|
|
4172
|
+
return new RQLSort().fromJsonString(jsonString, options);
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
static equals(a: RQLSort | PlainMessage<RQLSort> | undefined, b: RQLSort | PlainMessage<RQLSort> | undefined): boolean {
|
|
4176
|
+
return proto3.util.equals(RQLSort, a, b);
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
/**
|
|
4181
|
+
* @generated from message raystack.frontier.v1beta1.RQLQueryPaginationResponse
|
|
4182
|
+
*/
|
|
4183
|
+
export class RQLQueryPaginationResponse extends Message<RQLQueryPaginationResponse> {
|
|
4184
|
+
/**
|
|
4185
|
+
* @generated from field: uint32 offset = 1;
|
|
4186
|
+
*/
|
|
4187
|
+
offset = 0;
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* @generated from field: uint32 limit = 2;
|
|
4191
|
+
*/
|
|
4192
|
+
limit = 0;
|
|
4193
|
+
|
|
4194
|
+
/**
|
|
4195
|
+
* @generated from field: uint32 total_count = 3;
|
|
4196
|
+
*/
|
|
4197
|
+
totalCount = 0;
|
|
4198
|
+
|
|
4199
|
+
constructor(data?: PartialMessage<RQLQueryPaginationResponse>) {
|
|
4200
|
+
super();
|
|
4201
|
+
proto3.util.initPartial(data, this);
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4205
|
+
static readonly typeName = "raystack.frontier.v1beta1.RQLQueryPaginationResponse";
|
|
4206
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4207
|
+
{ no: 1, name: "offset", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
4208
|
+
{ no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
4209
|
+
{ no: 3, name: "total_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
4210
|
+
]);
|
|
4211
|
+
|
|
4212
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RQLQueryPaginationResponse {
|
|
4213
|
+
return new RQLQueryPaginationResponse().fromBinary(bytes, options);
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RQLQueryPaginationResponse {
|
|
4217
|
+
return new RQLQueryPaginationResponse().fromJson(jsonValue, options);
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RQLQueryPaginationResponse {
|
|
4221
|
+
return new RQLQueryPaginationResponse().fromJsonString(jsonString, options);
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
static equals(a: RQLQueryPaginationResponse | PlainMessage<RQLQueryPaginationResponse> | undefined, b: RQLQueryPaginationResponse | PlainMessage<RQLQueryPaginationResponse> | undefined): boolean {
|
|
4225
|
+
return proto3.util.equals(RQLQueryPaginationResponse, a, b);
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4229
|
+
/**
|
|
4230
|
+
* @generated from message raystack.frontier.v1beta1.RQLQueryGroupResponse
|
|
4231
|
+
*/
|
|
4232
|
+
export class RQLQueryGroupResponse extends Message<RQLQueryGroupResponse> {
|
|
4233
|
+
/**
|
|
4234
|
+
* @generated from field: string name = 1;
|
|
4235
|
+
*/
|
|
4236
|
+
name = "";
|
|
4237
|
+
|
|
4238
|
+
/**
|
|
4239
|
+
* @generated from field: repeated raystack.frontier.v1beta1.RQLQueryGroupData data = 2;
|
|
4240
|
+
*/
|
|
4241
|
+
data: RQLQueryGroupData[] = [];
|
|
4242
|
+
|
|
4243
|
+
constructor(data?: PartialMessage<RQLQueryGroupResponse>) {
|
|
4244
|
+
super();
|
|
4245
|
+
proto3.util.initPartial(data, this);
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4249
|
+
static readonly typeName = "raystack.frontier.v1beta1.RQLQueryGroupResponse";
|
|
4250
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4251
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4252
|
+
{ no: 2, name: "data", kind: "message", T: RQLQueryGroupData, repeated: true },
|
|
4253
|
+
]);
|
|
4254
|
+
|
|
4255
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RQLQueryGroupResponse {
|
|
4256
|
+
return new RQLQueryGroupResponse().fromBinary(bytes, options);
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RQLQueryGroupResponse {
|
|
4260
|
+
return new RQLQueryGroupResponse().fromJson(jsonValue, options);
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4263
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RQLQueryGroupResponse {
|
|
4264
|
+
return new RQLQueryGroupResponse().fromJsonString(jsonString, options);
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
static equals(a: RQLQueryGroupResponse | PlainMessage<RQLQueryGroupResponse> | undefined, b: RQLQueryGroupResponse | PlainMessage<RQLQueryGroupResponse> | undefined): boolean {
|
|
4268
|
+
return proto3.util.equals(RQLQueryGroupResponse, a, b);
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
/**
|
|
4273
|
+
* @generated from message raystack.frontier.v1beta1.RQLQueryGroupData
|
|
4274
|
+
*/
|
|
4275
|
+
export class RQLQueryGroupData extends Message<RQLQueryGroupData> {
|
|
4276
|
+
/**
|
|
4277
|
+
* @generated from field: string name = 1;
|
|
4278
|
+
*/
|
|
4279
|
+
name = "";
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* @generated from field: uint32 count = 2;
|
|
4283
|
+
*/
|
|
4284
|
+
count = 0;
|
|
4285
|
+
|
|
4286
|
+
constructor(data?: PartialMessage<RQLQueryGroupData>) {
|
|
4287
|
+
super();
|
|
4288
|
+
proto3.util.initPartial(data, this);
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4292
|
+
static readonly typeName = "raystack.frontier.v1beta1.RQLQueryGroupData";
|
|
4293
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4294
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4295
|
+
{ no: 2, name: "count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
4296
|
+
]);
|
|
4297
|
+
|
|
4298
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RQLQueryGroupData {
|
|
4299
|
+
return new RQLQueryGroupData().fromBinary(bytes, options);
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RQLQueryGroupData {
|
|
4303
|
+
return new RQLQueryGroupData().fromJson(jsonValue, options);
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RQLQueryGroupData {
|
|
4307
|
+
return new RQLQueryGroupData().fromJsonString(jsonString, options);
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
static equals(a: RQLQueryGroupData | PlainMessage<RQLQueryGroupData> | undefined, b: RQLQueryGroupData | PlainMessage<RQLQueryGroupData> | undefined): boolean {
|
|
4311
|
+
return proto3.util.equals(RQLQueryGroupData, a, b);
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4315
|
+
/**
|
|
4316
|
+
* @generated from message raystack.frontier.v1beta1.ExportOrganizationsRequest
|
|
4317
|
+
*/
|
|
4318
|
+
export class ExportOrganizationsRequest extends Message<ExportOrganizationsRequest> {
|
|
4319
|
+
constructor(data?: PartialMessage<ExportOrganizationsRequest>) {
|
|
4320
|
+
super();
|
|
4321
|
+
proto3.util.initPartial(data, this);
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4325
|
+
static readonly typeName = "raystack.frontier.v1beta1.ExportOrganizationsRequest";
|
|
4326
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4327
|
+
]);
|
|
4328
|
+
|
|
4329
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportOrganizationsRequest {
|
|
4330
|
+
return new ExportOrganizationsRequest().fromBinary(bytes, options);
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportOrganizationsRequest {
|
|
4334
|
+
return new ExportOrganizationsRequest().fromJson(jsonValue, options);
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportOrganizationsRequest {
|
|
4338
|
+
return new ExportOrganizationsRequest().fromJsonString(jsonString, options);
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
static equals(a: ExportOrganizationsRequest | PlainMessage<ExportOrganizationsRequest> | undefined, b: ExportOrganizationsRequest | PlainMessage<ExportOrganizationsRequest> | undefined): boolean {
|
|
4342
|
+
return proto3.util.equals(ExportOrganizationsRequest, a, b);
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
|