@alienplatform/sdk 1.14.1 → 2.0.0
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/dist/dist.js +371 -275
- package/dist/index.d.ts +22 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -14356
- package/dist/native.d.ts +26 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.js +2 -0
- package/dist/worker-runtime/channel.d.ts +25 -0
- package/dist/worker-runtime/channel.d.ts.map +1 -0
- package/dist/worker-runtime/errors.d.ts +79 -0
- package/dist/worker-runtime/errors.d.ts.map +1 -0
- package/dist/worker-runtime/event-loop.d.ts +43 -0
- package/dist/worker-runtime/event-loop.d.ts.map +1 -0
- package/dist/{generated → worker-runtime/generated}/control.d.ts +15 -15
- package/dist/worker-runtime/generated/control.d.ts.map +1 -0
- package/dist/worker-runtime/generated/google/protobuf/duration.d.ts.map +1 -0
- package/dist/worker-runtime/generated/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/{generated → worker-runtime/generated}/wait_until.d.ts +29 -29
- package/dist/worker-runtime/generated/wait_until.d.ts.map +1 -0
- package/dist/worker-runtime/grpc-utils.d.ts +23 -0
- package/dist/worker-runtime/grpc-utils.d.ts.map +1 -0
- package/dist/worker-runtime/index.d.ts +33 -0
- package/dist/worker-runtime/index.d.ts.map +1 -0
- package/dist/{src.js → worker-runtime/index.js} +9370 -4035
- package/dist/worker-runtime/registry.d.ts +169 -0
- package/dist/worker-runtime/registry.d.ts.map +1 -0
- package/dist/worker-runtime/service-definitions.d.ts +12 -0
- package/dist/worker-runtime/service-definitions.d.ts.map +1 -0
- package/dist/worker-runtime/wait-until-manager.d.ts +34 -0
- package/dist/worker-runtime/wait-until-manager.d.ts.map +1 -0
- package/package.json +18 -38
- package/.turbo/turbo-build.log +0 -30
- package/AGENTS.md +0 -70
- package/dist/bearerTokenAuthenticationPolicy.js +0 -3028
- package/dist/bindings/artifact-registry.d.ts +0 -88
- package/dist/bindings/artifact-registry.d.ts.map +0 -1
- package/dist/bindings/build.d.ts +0 -67
- package/dist/bindings/build.d.ts.map +0 -1
- package/dist/bindings/index.d.ts +0 -13
- package/dist/bindings/index.d.ts.map +0 -1
- package/dist/bindings/kv.d.ts +0 -113
- package/dist/bindings/kv.d.ts.map +0 -1
- package/dist/bindings/postgres.d.ts +0 -90
- package/dist/bindings/postgres.d.ts.map +0 -1
- package/dist/bindings/postgres.test.d.ts +0 -2
- package/dist/bindings/postgres.test.d.ts.map +0 -1
- package/dist/bindings/queue.d.ts +0 -81
- package/dist/bindings/queue.d.ts.map +0 -1
- package/dist/bindings/service-account.d.ts +0 -46
- package/dist/bindings/service-account.d.ts.map +0 -1
- package/dist/bindings/storage.d.ts +0 -164
- package/dist/bindings/storage.d.ts.map +0 -1
- package/dist/bindings/vault.d.ts +0 -65
- package/dist/bindings/vault.d.ts.map +0 -1
- package/dist/bindings/worker.d.ts +0 -72
- package/dist/bindings/worker.d.ts.map +0 -1
- package/dist/channel.d.ts +0 -39
- package/dist/channel.d.ts.map +0 -1
- package/dist/checksum.js +0 -6176
- package/dist/commands/client.d.ts +0 -47
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/errors.d.ts +0 -198
- package/dist/commands/errors.d.ts.map +0 -1
- package/dist/commands/index.d.ts +0 -23
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -387
- package/dist/commands/types.d.ts +0 -40
- package/dist/commands/types.d.ts.map +0 -1
- package/dist/commands.d.ts +0 -55
- package/dist/commands.d.ts.map +0 -1
- package/dist/context.d.ts +0 -182
- package/dist/context.d.ts.map +0 -1
- package/dist/dist-cjs.js +0 -15258
- package/dist/dist2.js +0 -1239
- package/dist/errors.d.ts +0 -359
- package/dist/errors.d.ts.map +0 -1
- package/dist/es5.js +0 -1720
- package/dist/esm.js +0 -18068
- package/dist/esm2.js +0 -3166
- package/dist/event-streams.js +0 -770
- package/dist/events.d.ts +0 -163
- package/dist/events.d.ts.map +0 -1
- package/dist/generated/artifact_registry.d.ts +0 -302
- package/dist/generated/artifact_registry.d.ts.map +0 -1
- package/dist/generated/build.d.ts +0 -184
- package/dist/generated/build.d.ts.map +0 -1
- package/dist/generated/container.d.ts +0 -101
- package/dist/generated/container.d.ts.map +0 -1
- package/dist/generated/control.d.ts.map +0 -1
- package/dist/generated/google/protobuf/duration.d.ts.map +0 -1
- package/dist/generated/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/generated/kv.d.ts +0 -182
- package/dist/generated/kv.d.ts.map +0 -1
- package/dist/generated/queue.d.ts +0 -127
- package/dist/generated/queue.d.ts.map +0 -1
- package/dist/generated/service_account.d.ts +0 -112
- package/dist/generated/service_account.d.ts.map +0 -1
- package/dist/generated/storage.d.ts +0 -784
- package/dist/generated/storage.d.ts.map +0 -1
- package/dist/generated/vault.d.ts +0 -107
- package/dist/generated/vault.d.ts.map +0 -1
- package/dist/generated/wait_until.d.ts.map +0 -1
- package/dist/generated/worker.d.ts +0 -107
- package/dist/generated/worker.d.ts.map +0 -1
- package/dist/global.d.ts +0 -208
- package/dist/global.d.ts.map +0 -1
- package/dist/grpc-utils.d.ts +0 -25
- package/dist/grpc-utils.d.ts.map +0 -1
- package/dist/jws.js +0 -611
- package/dist/open.js +0 -461
- package/dist/rolldown-runtime.js +0 -44
- package/dist/src2.js +0 -114032
- package/dist/types.d.ts +0 -337
- package/dist/types.d.ts.map +0 -1
- package/dist/wait-until.d.ts +0 -115
- package/dist/wait-until.d.ts.map +0 -1
- package/scripts/generate-proto.sh +0 -46
- package/src/bindings/AGENTS.md +0 -105
- package/src/bindings/artifact-registry.ts +0 -317
- package/src/bindings/build.ts +0 -195
- package/src/bindings/index.ts +0 -13
- package/src/bindings/kv.ts +0 -240
- package/src/bindings/postgres.test.ts +0 -17
- package/src/bindings/postgres.ts +0 -446
- package/src/bindings/queue.ts +0 -191
- package/src/bindings/service-account.ts +0 -113
- package/src/bindings/storage.ts +0 -536
- package/src/bindings/vault.ts +0 -133
- package/src/bindings/worker.ts +0 -164
- package/src/channel.ts +0 -102
- package/src/commands/client.ts +0 -446
- package/src/commands/errors.ts +0 -126
- package/src/commands/index.ts +0 -41
- package/src/commands/types.ts +0 -52
- package/src/commands.ts +0 -76
- package/src/context.ts +0 -368
- package/src/errors.ts +0 -280
- package/src/events.ts +0 -511
- package/src/generated/artifact_registry.ts +0 -2096
- package/src/generated/build.ts +0 -1311
- package/src/generated/container.ts +0 -503
- package/src/generated/control.ts +0 -2018
- package/src/generated/google/protobuf/duration.ts +0 -196
- package/src/generated/google/protobuf/timestamp.ts +0 -226
- package/src/generated/kv.ts +0 -1169
- package/src/generated/queue.ts +0 -753
- package/src/generated/service_account.ts +0 -814
- package/src/generated/storage.ts +0 -3820
- package/src/generated/vault.ts +0 -543
- package/src/generated/wait_until.ts +0 -829
- package/src/generated/worker.ts +0 -759
- package/src/global.ts +0 -287
- package/src/grpc-utils.ts +0 -159
- package/src/index.ts +0 -160
- package/src/types.ts +0 -397
- package/src/wait-until.ts +0 -273
- package/tsconfig.json +0 -8
- package/tsdown.config.ts +0 -17
- /package/dist/{generated → worker-runtime/generated}/google/protobuf/duration.d.ts +0 -0
- /package/dist/{generated → worker-runtime/generated}/google/protobuf/timestamp.d.ts +0 -0
package/dist/errors.d.ts
DELETED
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error definitions for the Alien bindings SDK.
|
|
3
|
-
* These errors are thrown when binding operations fail.
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
/**
|
|
7
|
-
* Error thrown when the gRPC connection to the alien-runtime fails.
|
|
8
|
-
*/
|
|
9
|
-
export declare const GrpcConnectionError: {
|
|
10
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
11
|
-
endpoint: z.ZodString;
|
|
12
|
-
reason: z.ZodString;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
contextSchema: z.ZodObject<{
|
|
15
|
-
endpoint: z.ZodString;
|
|
16
|
-
reason: z.ZodString;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
create: (context: {
|
|
19
|
-
endpoint: string;
|
|
20
|
-
reason: string;
|
|
21
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
22
|
-
endpoint: z.ZodString;
|
|
23
|
-
reason: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Error thrown when a gRPC call fails.
|
|
28
|
-
*/
|
|
29
|
-
export declare const GrpcCallError: {
|
|
30
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
31
|
-
service: z.ZodString;
|
|
32
|
-
method: z.ZodString;
|
|
33
|
-
grpcCode: z.ZodString;
|
|
34
|
-
details: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
contextSchema: z.ZodObject<{
|
|
37
|
-
service: z.ZodString;
|
|
38
|
-
method: z.ZodString;
|
|
39
|
-
grpcCode: z.ZodString;
|
|
40
|
-
details: z.ZodString;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
create: (context: {
|
|
43
|
-
service: string;
|
|
44
|
-
method: string;
|
|
45
|
-
grpcCode: string;
|
|
46
|
-
details: string;
|
|
47
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
48
|
-
service: z.ZodString;
|
|
49
|
-
method: z.ZodString;
|
|
50
|
-
grpcCode: z.ZodString;
|
|
51
|
-
details: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Error thrown when a binding is not found.
|
|
56
|
-
*/
|
|
57
|
-
export declare const BindingNotFoundError: {
|
|
58
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
59
|
-
bindingName: z.ZodString;
|
|
60
|
-
bindingType: z.ZodString;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
|
-
contextSchema: z.ZodObject<{
|
|
63
|
-
bindingName: z.ZodString;
|
|
64
|
-
bindingType: z.ZodString;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
create: (context: {
|
|
67
|
-
bindingName: string;
|
|
68
|
-
bindingType: string;
|
|
69
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
70
|
-
bindingName: z.ZodString;
|
|
71
|
-
bindingType: z.ZodString;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Error thrown when the AlienContext is not initialized.
|
|
76
|
-
*/
|
|
77
|
-
export declare const ContextNotInitializedError: {
|
|
78
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
79
|
-
operation: z.ZodString;
|
|
80
|
-
}, z.core.$strip>>;
|
|
81
|
-
contextSchema: z.ZodObject<{
|
|
82
|
-
operation: z.ZodString;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
create: (context: {
|
|
85
|
-
operation: string;
|
|
86
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
87
|
-
operation: z.ZodString;
|
|
88
|
-
}, z.core.$strip>>;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Error thrown when a required environment variable is missing.
|
|
92
|
-
*/
|
|
93
|
-
export declare const MissingEnvVarError: {
|
|
94
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
95
|
-
variable: z.ZodString;
|
|
96
|
-
description: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
contextSchema: z.ZodObject<{
|
|
99
|
-
variable: z.ZodString;
|
|
100
|
-
description: z.ZodString;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
create: (context: {
|
|
103
|
-
variable: string;
|
|
104
|
-
description: string;
|
|
105
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
106
|
-
variable: z.ZodString;
|
|
107
|
-
description: z.ZodString;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Error thrown when a storage object is not found.
|
|
112
|
-
*/
|
|
113
|
-
export declare const StorageObjectNotFoundError: {
|
|
114
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
115
|
-
bindingName: z.ZodString;
|
|
116
|
-
path: z.ZodString;
|
|
117
|
-
}, z.core.$strip>>;
|
|
118
|
-
contextSchema: z.ZodObject<{
|
|
119
|
-
bindingName: z.ZodString;
|
|
120
|
-
path: z.ZodString;
|
|
121
|
-
}, z.core.$strip>;
|
|
122
|
-
create: (context: {
|
|
123
|
-
bindingName: string;
|
|
124
|
-
path: string;
|
|
125
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
126
|
-
bindingName: z.ZodString;
|
|
127
|
-
path: z.ZodString;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Error thrown when a storage precondition fails.
|
|
132
|
-
*/
|
|
133
|
-
export declare const StoragePreconditionError: {
|
|
134
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
135
|
-
bindingName: z.ZodString;
|
|
136
|
-
path: z.ZodString;
|
|
137
|
-
condition: z.ZodString;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
|
-
contextSchema: z.ZodObject<{
|
|
140
|
-
bindingName: z.ZodString;
|
|
141
|
-
path: z.ZodString;
|
|
142
|
-
condition: z.ZodString;
|
|
143
|
-
}, z.core.$strip>;
|
|
144
|
-
create: (context: {
|
|
145
|
-
bindingName: string;
|
|
146
|
-
path: string;
|
|
147
|
-
condition: string;
|
|
148
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
149
|
-
bindingName: z.ZodString;
|
|
150
|
-
path: z.ZodString;
|
|
151
|
-
condition: z.ZodString;
|
|
152
|
-
}, z.core.$strip>>;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Error thrown when a storage object already exists (for create mode).
|
|
156
|
-
*/
|
|
157
|
-
export declare const StorageObjectExistsError: {
|
|
158
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
159
|
-
bindingName: z.ZodString;
|
|
160
|
-
path: z.ZodString;
|
|
161
|
-
}, z.core.$strip>>;
|
|
162
|
-
contextSchema: z.ZodObject<{
|
|
163
|
-
bindingName: z.ZodString;
|
|
164
|
-
path: z.ZodString;
|
|
165
|
-
}, z.core.$strip>;
|
|
166
|
-
create: (context: {
|
|
167
|
-
bindingName: string;
|
|
168
|
-
path: string;
|
|
169
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
170
|
-
bindingName: z.ZodString;
|
|
171
|
-
path: z.ZodString;
|
|
172
|
-
}, z.core.$strip>>;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Error thrown when a KV key is not found.
|
|
176
|
-
*/
|
|
177
|
-
export declare const KvKeyNotFoundError: {
|
|
178
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
179
|
-
bindingName: z.ZodString;
|
|
180
|
-
key: z.ZodString;
|
|
181
|
-
}, z.core.$strip>>;
|
|
182
|
-
contextSchema: z.ZodObject<{
|
|
183
|
-
bindingName: z.ZodString;
|
|
184
|
-
key: z.ZodString;
|
|
185
|
-
}, z.core.$strip>;
|
|
186
|
-
create: (context: {
|
|
187
|
-
bindingName: string;
|
|
188
|
-
key: string;
|
|
189
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
190
|
-
bindingName: z.ZodString;
|
|
191
|
-
key: z.ZodString;
|
|
192
|
-
}, z.core.$strip>>;
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* Error thrown when a KV key is invalid.
|
|
196
|
-
*/
|
|
197
|
-
export declare const KvInvalidKeyError: {
|
|
198
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
199
|
-
key: z.ZodString;
|
|
200
|
-
reason: z.ZodString;
|
|
201
|
-
}, z.core.$strip>>;
|
|
202
|
-
contextSchema: z.ZodObject<{
|
|
203
|
-
key: z.ZodString;
|
|
204
|
-
reason: z.ZodString;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
create: (context: {
|
|
207
|
-
key: string;
|
|
208
|
-
reason: string;
|
|
209
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
210
|
-
key: z.ZodString;
|
|
211
|
-
reason: z.ZodString;
|
|
212
|
-
}, z.core.$strip>>;
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Error thrown when a KV value is invalid.
|
|
216
|
-
*/
|
|
217
|
-
export declare const KvInvalidValueError: {
|
|
218
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
219
|
-
reason: z.ZodString;
|
|
220
|
-
}, z.core.$strip>>;
|
|
221
|
-
contextSchema: z.ZodObject<{
|
|
222
|
-
reason: z.ZodString;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
|
-
create: (context: {
|
|
225
|
-
reason: string;
|
|
226
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
227
|
-
reason: z.ZodString;
|
|
228
|
-
}, z.core.$strip>>;
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Error thrown when a secret is not found.
|
|
232
|
-
*/
|
|
233
|
-
export declare const SecretNotFoundError: {
|
|
234
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
235
|
-
bindingName: z.ZodString;
|
|
236
|
-
secretName: z.ZodString;
|
|
237
|
-
}, z.core.$strip>>;
|
|
238
|
-
contextSchema: z.ZodObject<{
|
|
239
|
-
bindingName: z.ZodString;
|
|
240
|
-
secretName: z.ZodString;
|
|
241
|
-
}, z.core.$strip>;
|
|
242
|
-
create: (context: {
|
|
243
|
-
bindingName: string;
|
|
244
|
-
secretName: string;
|
|
245
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
246
|
-
bindingName: z.ZodString;
|
|
247
|
-
secretName: z.ZodString;
|
|
248
|
-
}, z.core.$strip>>;
|
|
249
|
-
};
|
|
250
|
-
/**
|
|
251
|
-
* Error thrown when a queue operation fails.
|
|
252
|
-
*/
|
|
253
|
-
export declare const QueueOperationError: {
|
|
254
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
255
|
-
bindingName: z.ZodString;
|
|
256
|
-
queue: z.ZodString;
|
|
257
|
-
operation: z.ZodString;
|
|
258
|
-
reason: z.ZodString;
|
|
259
|
-
}, z.core.$strip>>;
|
|
260
|
-
contextSchema: z.ZodObject<{
|
|
261
|
-
bindingName: z.ZodString;
|
|
262
|
-
queue: z.ZodString;
|
|
263
|
-
operation: z.ZodString;
|
|
264
|
-
reason: z.ZodString;
|
|
265
|
-
}, z.core.$strip>;
|
|
266
|
-
create: (context: {
|
|
267
|
-
bindingName: string;
|
|
268
|
-
queue: string;
|
|
269
|
-
operation: string;
|
|
270
|
-
reason: string;
|
|
271
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
272
|
-
bindingName: z.ZodString;
|
|
273
|
-
queue: z.ZodString;
|
|
274
|
-
operation: z.ZodString;
|
|
275
|
-
reason: z.ZodString;
|
|
276
|
-
}, z.core.$strip>>;
|
|
277
|
-
};
|
|
278
|
-
/**
|
|
279
|
-
* Error thrown when an event handler is already registered.
|
|
280
|
-
*/
|
|
281
|
-
export declare const EventHandlerAlreadyRegisteredError: {
|
|
282
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
283
|
-
handlerType: z.ZodString;
|
|
284
|
-
resourceName: z.ZodString;
|
|
285
|
-
}, z.core.$strip>>;
|
|
286
|
-
contextSchema: z.ZodObject<{
|
|
287
|
-
handlerType: z.ZodString;
|
|
288
|
-
resourceName: z.ZodString;
|
|
289
|
-
}, z.core.$strip>;
|
|
290
|
-
create: (context: {
|
|
291
|
-
handlerType: string;
|
|
292
|
-
resourceName: string;
|
|
293
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
294
|
-
handlerType: z.ZodString;
|
|
295
|
-
resourceName: z.ZodString;
|
|
296
|
-
}, z.core.$strip>>;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Error thrown when a command is already registered.
|
|
300
|
-
*/
|
|
301
|
-
export declare const CommandAlreadyRegisteredError: {
|
|
302
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
303
|
-
commandName: z.ZodString;
|
|
304
|
-
}, z.core.$strip>>;
|
|
305
|
-
contextSchema: z.ZodObject<{
|
|
306
|
-
commandName: z.ZodString;
|
|
307
|
-
}, z.core.$strip>;
|
|
308
|
-
create: (context: {
|
|
309
|
-
commandName: string;
|
|
310
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
311
|
-
commandName: z.ZodString;
|
|
312
|
-
}, z.core.$strip>>;
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* Error thrown when the binding configuration is invalid.
|
|
316
|
-
*/
|
|
317
|
-
export declare const InvalidBindingConfigError: {
|
|
318
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
319
|
-
message: z.ZodString;
|
|
320
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
321
|
-
}, z.core.$strip>>;
|
|
322
|
-
contextSchema: z.ZodObject<{
|
|
323
|
-
message: z.ZodString;
|
|
324
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
325
|
-
}, z.core.$strip>;
|
|
326
|
-
create: (context: {
|
|
327
|
-
message: string;
|
|
328
|
-
suggestion?: string | undefined;
|
|
329
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
330
|
-
message: z.ZodString;
|
|
331
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.core.$strip>>;
|
|
333
|
-
};
|
|
334
|
-
/**
|
|
335
|
-
* Error thrown when reading a Postgres connection-password secret from a cloud secret store yields
|
|
336
|
-
* no usable value — an upstream read failure (throttle, network blip, service unavailable) or a
|
|
337
|
-
* stored secret that is present but empty. Both are control-plane invariants the workload cannot
|
|
338
|
-
* fix, so unlike {@link InvalidBindingConfigError} this is retryable and maps to 503, not a
|
|
339
|
-
* user-fixable 400. The genuinely user-invalid cases (a malformed secret URI, a malformed binding)
|
|
340
|
-
* keep using InvalidBindingConfigError.
|
|
341
|
-
*/
|
|
342
|
-
export declare const PostgresSecretResolutionError: {
|
|
343
|
-
metadata: import("@alienplatform/core").AlienErrorMetadata<z.ZodObject<{
|
|
344
|
-
secret: z.ZodString;
|
|
345
|
-
reason: z.ZodString;
|
|
346
|
-
}, z.core.$strip>>;
|
|
347
|
-
contextSchema: z.ZodObject<{
|
|
348
|
-
secret: z.ZodString;
|
|
349
|
-
reason: z.ZodString;
|
|
350
|
-
}, z.core.$strip>;
|
|
351
|
-
create: (context: {
|
|
352
|
-
secret: string;
|
|
353
|
-
reason: string;
|
|
354
|
-
}) => import("@alienplatform/core").AlienErrorDefinition<z.ZodObject<{
|
|
355
|
-
secret: z.ZodString;
|
|
356
|
-
reason: z.ZodString;
|
|
357
|
-
}, z.core.$strip>>;
|
|
358
|
-
};
|
|
359
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAW9B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;CAaxB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAU/B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;CAUrC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAW7B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;CAWrC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;CAYnC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;CAWnC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAU7B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;CAU5B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;CAS9B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAW9B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAa9B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;CAW7C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;CASxC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAUpC,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;CAWxC,CAAA"}
|