@valon-technologies/gestalt 0.0.1-alpha.1
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/README.md +160 -0
- package/gen/v1/auth_pb.ts +212 -0
- package/gen/v1/cache_pb.ts +357 -0
- package/gen/v1/datastore_pb.ts +922 -0
- package/gen/v1/plugin_pb.ts +772 -0
- package/gen/v1/runtime_pb.ts +216 -0
- package/gen/v1/s3_pb.ts +640 -0
- package/gen/v1/secrets_pb.ts +63 -0
- package/package.json +55 -0
- package/src/api.ts +98 -0
- package/src/auth.ts +103 -0
- package/src/build.ts +181 -0
- package/src/cache.ts +304 -0
- package/src/catalog.ts +188 -0
- package/src/index.ts +182 -0
- package/src/indexeddb.ts +740 -0
- package/src/plugin.ts +402 -0
- package/src/provider.ts +133 -0
- package/src/runtime.ts +871 -0
- package/src/s3.ts +1128 -0
- package/src/schema.ts +219 -0
- package/src/secrets.ts +36 -0
- package/src/target.ts +192 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file v1/runtime.proto (package gestalt.provider.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file v1/runtime.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_v1_runtime: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("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mlkZXJJZGVudGl0eRJyChFDb25maWd1cmVQcm92aWRlchItLmdlc3RhbHQucHJvdmlkZXIudjEuQ29uZmlndXJlUHJvdmlkZXJSZXF1ZXN0Gi4uZ2VzdGFsdC5wcm92aWRlci52MS5Db25maWd1cmVQcm92aWRlclJlc3BvbnNlEk8KC0hlYWx0aENoZWNrEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GiguZ2VzdGFsdC5wcm92aWRlci52MS5IZWFsdGhDaGVja1Jlc3BvbnNlQjtaOWdpdGh1Yi5jb20vdmFsb24tdGVjaG5vbG9naWVzL2dlc3RhbHQvc2RrL2dvL2dlbi92MTtwcm90b2IGcHJvdG8z", [file_google_protobuf_empty, file_google_protobuf_struct]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @generated from message gestalt.provider.v1.ProviderIdentity
|
|
19
|
+
*/
|
|
20
|
+
export type ProviderIdentity = Message<"gestalt.provider.v1.ProviderIdentity"> & {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: gestalt.provider.v1.ProviderKind kind = 1;
|
|
23
|
+
*/
|
|
24
|
+
kind: ProviderKind;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: string name = 2;
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: string display_name = 3;
|
|
33
|
+
*/
|
|
34
|
+
displayName: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: string description = 4;
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: string version = 5;
|
|
43
|
+
*/
|
|
44
|
+
version: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: repeated string warnings = 6;
|
|
48
|
+
*/
|
|
49
|
+
warnings: string[];
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: int32 min_protocol_version = 10;
|
|
53
|
+
*/
|
|
54
|
+
minProtocolVersion: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: int32 max_protocol_version = 11;
|
|
58
|
+
*/
|
|
59
|
+
maxProtocolVersion: number;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message gestalt.provider.v1.ProviderIdentity.
|
|
64
|
+
* Use `create(ProviderIdentitySchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const ProviderIdentitySchema: GenMessage<ProviderIdentity> = /*@__PURE__*/
|
|
67
|
+
messageDesc(file_v1_runtime, 0);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @generated from message gestalt.provider.v1.ConfigureProviderRequest
|
|
71
|
+
*/
|
|
72
|
+
export type ConfigureProviderRequest = Message<"gestalt.provider.v1.ConfigureProviderRequest"> & {
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string name = 1;
|
|
75
|
+
*/
|
|
76
|
+
name: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: google.protobuf.Struct config = 2;
|
|
80
|
+
*/
|
|
81
|
+
config?: JsonObject;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: int32 protocol_version = 3;
|
|
85
|
+
*/
|
|
86
|
+
protocolVersion: number;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message gestalt.provider.v1.ConfigureProviderRequest.
|
|
91
|
+
* Use `create(ConfigureProviderRequestSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export const ConfigureProviderRequestSchema: GenMessage<ConfigureProviderRequest> = /*@__PURE__*/
|
|
94
|
+
messageDesc(file_v1_runtime, 1);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message gestalt.provider.v1.ConfigureProviderResponse
|
|
98
|
+
*/
|
|
99
|
+
export type ConfigureProviderResponse = Message<"gestalt.provider.v1.ConfigureProviderResponse"> & {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: int32 protocol_version = 1;
|
|
102
|
+
*/
|
|
103
|
+
protocolVersion: number;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Describes the message gestalt.provider.v1.ConfigureProviderResponse.
|
|
108
|
+
* Use `create(ConfigureProviderResponseSchema)` to create a new message.
|
|
109
|
+
*/
|
|
110
|
+
export const ConfigureProviderResponseSchema: GenMessage<ConfigureProviderResponse> = /*@__PURE__*/
|
|
111
|
+
messageDesc(file_v1_runtime, 2);
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @generated from message gestalt.provider.v1.HealthCheckResponse
|
|
115
|
+
*/
|
|
116
|
+
export type HealthCheckResponse = Message<"gestalt.provider.v1.HealthCheckResponse"> & {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: bool ready = 1;
|
|
119
|
+
*/
|
|
120
|
+
ready: boolean;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: string message = 2;
|
|
124
|
+
*/
|
|
125
|
+
message: string;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Describes the message gestalt.provider.v1.HealthCheckResponse.
|
|
130
|
+
* Use `create(HealthCheckResponseSchema)` to create a new message.
|
|
131
|
+
*/
|
|
132
|
+
export const HealthCheckResponseSchema: GenMessage<HealthCheckResponse> = /*@__PURE__*/
|
|
133
|
+
messageDesc(file_v1_runtime, 3);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from enum gestalt.provider.v1.ProviderKind
|
|
137
|
+
*/
|
|
138
|
+
export enum ProviderKind {
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum value: PROVIDER_KIND_UNSPECIFIED = 0;
|
|
141
|
+
*/
|
|
142
|
+
UNSPECIFIED = 0,
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: PROVIDER_KIND_INTEGRATION = 1;
|
|
146
|
+
*/
|
|
147
|
+
INTEGRATION = 1,
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from enum value: PROVIDER_KIND_AUTH = 2;
|
|
151
|
+
*/
|
|
152
|
+
AUTH = 2,
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum value: PROVIDER_KIND_INDEXEDDB = 3;
|
|
156
|
+
*/
|
|
157
|
+
INDEXEDDB = 3,
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @generated from enum value: PROVIDER_KIND_SECRETS = 4;
|
|
161
|
+
*/
|
|
162
|
+
SECRETS = 4,
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: PROVIDER_KIND_TELEMETRY = 5;
|
|
166
|
+
*/
|
|
167
|
+
TELEMETRY = 5,
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from enum value: PROVIDER_KIND_CACHE = 6;
|
|
171
|
+
*/
|
|
172
|
+
CACHE = 6,
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from enum value: PROVIDER_KIND_S3 = 7;
|
|
176
|
+
*/
|
|
177
|
+
S3 = 7,
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Describes the enum gestalt.provider.v1.ProviderKind.
|
|
182
|
+
*/
|
|
183
|
+
export const ProviderKindSchema: GenEnum<ProviderKind> = /*@__PURE__*/
|
|
184
|
+
enumDesc(file_v1_runtime, 0);
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @generated from service gestalt.provider.v1.ProviderLifecycle
|
|
188
|
+
*/
|
|
189
|
+
export const ProviderLifecycle: GenService<{
|
|
190
|
+
/**
|
|
191
|
+
* @generated from rpc gestalt.provider.v1.ProviderLifecycle.GetProviderIdentity
|
|
192
|
+
*/
|
|
193
|
+
getProviderIdentity: {
|
|
194
|
+
methodKind: "unary";
|
|
195
|
+
input: typeof EmptySchema;
|
|
196
|
+
output: typeof ProviderIdentitySchema;
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* @generated from rpc gestalt.provider.v1.ProviderLifecycle.ConfigureProvider
|
|
200
|
+
*/
|
|
201
|
+
configureProvider: {
|
|
202
|
+
methodKind: "unary";
|
|
203
|
+
input: typeof ConfigureProviderRequestSchema;
|
|
204
|
+
output: typeof ConfigureProviderResponseSchema;
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* @generated from rpc gestalt.provider.v1.ProviderLifecycle.HealthCheck
|
|
208
|
+
*/
|
|
209
|
+
healthCheck: {
|
|
210
|
+
methodKind: "unary";
|
|
211
|
+
input: typeof EmptySchema;
|
|
212
|
+
output: typeof HealthCheckResponseSchema;
|
|
213
|
+
},
|
|
214
|
+
}> = /*@__PURE__*/
|
|
215
|
+
serviceDesc(file_v1_runtime, 0);
|
|
216
|
+
|