@crossplane-org/function-sdk-typescript 0.1.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.
Files changed (51) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +683 -0
  3. package/dist/example-function.d.ts +11 -0
  4. package/dist/example-function.d.ts.map +1 -0
  5. package/dist/example-function.js +93 -0
  6. package/dist/example-function.js.map +1 -0
  7. package/dist/function/function.d.ts +115 -0
  8. package/dist/function/function.d.ts.map +1 -0
  9. package/dist/function/function.js +111 -0
  10. package/dist/function/function.js.map +1 -0
  11. package/dist/index.d.ts +9 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +13 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/main.d.ts +3 -0
  16. package/dist/main.d.ts.map +1 -0
  17. package/dist/main.js +69 -0
  18. package/dist/main.js.map +1 -0
  19. package/dist/proto/google/protobuf/duration.d.ts +107 -0
  20. package/dist/proto/google/protobuf/duration.d.ts.map +1 -0
  21. package/dist/proto/google/protobuf/duration.js +90 -0
  22. package/dist/proto/google/protobuf/duration.js.map +1 -0
  23. package/dist/proto/google/protobuf/struct.d.ts +115 -0
  24. package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
  25. package/dist/proto/google/protobuf/struct.js +452 -0
  26. package/dist/proto/google/protobuf/struct.js.map +1 -0
  27. package/dist/proto/run_function.d.ts +494 -0
  28. package/dist/proto/run_function.d.ts.map +1 -0
  29. package/dist/proto/run_function.js +2230 -0
  30. package/dist/proto/run_function.js.map +1 -0
  31. package/dist/request/request.d.ts +198 -0
  32. package/dist/request/request.d.ts.map +1 -0
  33. package/dist/request/request.js +219 -0
  34. package/dist/request/request.js.map +1 -0
  35. package/dist/resource/resource.d.ts +101 -0
  36. package/dist/resource/resource.d.ts.map +1 -0
  37. package/dist/resource/resource.js +98 -0
  38. package/dist/resource/resource.js.map +1 -0
  39. package/dist/response/response.d.ts +273 -0
  40. package/dist/response/response.d.ts.map +1 -0
  41. package/dist/response/response.js +339 -0
  42. package/dist/response/response.js.map +1 -0
  43. package/dist/runtime/runtime.d.ts +121 -0
  44. package/dist/runtime/runtime.d.ts.map +1 -0
  45. package/dist/runtime/runtime.js +124 -0
  46. package/dist/runtime/runtime.js.map +1 -0
  47. package/dist/vitest.config.d.ts +3 -0
  48. package/dist/vitest.config.d.ts.map +1 -0
  49. package/dist/vitest.config.js +17 -0
  50. package/dist/vitest.config.js.map +1 -0
  51. package/package.json +55 -0
@@ -0,0 +1,494 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
3
+ import { Duration } from "./google/protobuf/duration.js";
4
+ export declare const protobufPackage = "apiextensions.fn.proto.v1";
5
+ /** Ready indicates whether a resource should be considered ready. */
6
+ export declare enum Ready {
7
+ READY_UNSPECIFIED = 0,
8
+ /** READY_TRUE - True means the resource has been observed to be ready. */
9
+ READY_TRUE = 1,
10
+ /** READY_FALSE - False means the resource has not been observed to be ready. */
11
+ READY_FALSE = 2,
12
+ UNRECOGNIZED = -1
13
+ }
14
+ export declare function readyFromJSON(object: any): Ready;
15
+ export declare function readyToJSON(object: Ready): string;
16
+ /** Severity of function results. */
17
+ export declare enum Severity {
18
+ SEVERITY_UNSPECIFIED = 0,
19
+ /**
20
+ * SEVERITY_FATAL - Fatal results are fatal; subsequent functions may run, but the function
21
+ * pipeline run will be considered a failure and the first fatal result will
22
+ * be returned as an error.
23
+ */
24
+ SEVERITY_FATAL = 1,
25
+ /**
26
+ * SEVERITY_WARNING - Warning results are non-fatal; the entire pipeline will run to completion
27
+ * but warning events and debug logs associated with the XR or Operation will
28
+ * be emitted.
29
+ */
30
+ SEVERITY_WARNING = 2,
31
+ /**
32
+ * SEVERITY_NORMAL - Normal results are emitted as normal events and debug logs associated with
33
+ * the XR or operation.
34
+ */
35
+ SEVERITY_NORMAL = 3,
36
+ UNRECOGNIZED = -1
37
+ }
38
+ export declare function severityFromJSON(object: any): Severity;
39
+ export declare function severityToJSON(object: Severity): string;
40
+ /** Target of function results and conditions. */
41
+ export declare enum Target {
42
+ /** TARGET_UNSPECIFIED - If the target is unspecified, the result targets the XR. */
43
+ TARGET_UNSPECIFIED = 0,
44
+ /**
45
+ * TARGET_COMPOSITE - Target the XR. Results that target the XR should include detailed, advanced
46
+ * information.
47
+ */
48
+ TARGET_COMPOSITE = 1,
49
+ /**
50
+ * TARGET_COMPOSITE_AND_CLAIM - Target the XR and the claim. Results that target the XR and the claim
51
+ * should include only end-user friendly information.
52
+ */
53
+ TARGET_COMPOSITE_AND_CLAIM = 2,
54
+ UNRECOGNIZED = -1
55
+ }
56
+ export declare function targetFromJSON(object: any): Target;
57
+ export declare function targetToJSON(object: Target): string;
58
+ export declare enum Status {
59
+ STATUS_CONDITION_UNSPECIFIED = 0,
60
+ STATUS_CONDITION_UNKNOWN = 1,
61
+ STATUS_CONDITION_TRUE = 2,
62
+ STATUS_CONDITION_FALSE = 3,
63
+ UNRECOGNIZED = -1
64
+ }
65
+ export declare function statusFromJSON(object: any): Status;
66
+ export declare function statusToJSON(object: Status): string;
67
+ /** A RunFunctionRequest requests that the function be run. */
68
+ export interface RunFunctionRequest {
69
+ /** Metadata pertaining to this request. */
70
+ meta: RequestMeta | undefined;
71
+ /**
72
+ * The observed state prior to invocation of a function pipeline. State passed
73
+ * to each function is fresh as of the time the pipeline was invoked, not as
74
+ * of the time each function was invoked.
75
+ */
76
+ observed: State | undefined;
77
+ /**
78
+ * Desired state according to a function pipeline. The state passed to a
79
+ * particular function may have been accumulated by previous functions in the
80
+ * pipeline.
81
+ *
82
+ * Note that the desired state must be a partial object with only the fields
83
+ * that this function (and its predecessors in the pipeline) wants to have set
84
+ * in the object. Copying a non-partial observed state to desired is most
85
+ * likely not what you want to do. Leaving out fields that had been returned
86
+ * as desired before will result in them being deleted from the objects in the
87
+ * cluster.
88
+ */
89
+ desired: State | undefined;
90
+ /**
91
+ * Optional input specific to this function invocation. A JSON representation
92
+ * of the 'input' block of the relevant entry in a function pipeline.
93
+ */
94
+ input?: {
95
+ [key: string]: any;
96
+ } | undefined;
97
+ /**
98
+ * Optional context. Crossplane may pass arbitrary contextual information to a
99
+ * function. A function may also return context in its RunFunctionResponse,
100
+ * and that context will be passed to subsequent functions. Crossplane
101
+ * discards all context returned by the last function in the pipeline.
102
+ */
103
+ context?: {
104
+ [key: string]: any;
105
+ } | undefined;
106
+ /**
107
+ * Optional resources that the function specified in its requirements. Note
108
+ * that resources is a map to Resources, plural. The map key corresponds to
109
+ * the key in a RunFunctionResponse's requirements.extra_resources field. If a
110
+ * function requested extra resources that did not exist, Crossplane sets
111
+ * the map key to an empty Resources message to indicate that it attempted to
112
+ * satisfy the request. This field is only populated when the function uses
113
+ * extra_resources in its requirements.
114
+ *
115
+ * Deprecated: Use required_resources instead.
116
+ *
117
+ * @deprecated
118
+ */
119
+ extraResources: {
120
+ [key: string]: Resources;
121
+ };
122
+ /**
123
+ * Optional credentials that this function may use to communicate with an
124
+ * external system.
125
+ */
126
+ credentials: {
127
+ [key: string]: Credentials;
128
+ };
129
+ /**
130
+ * Optional resources that the function specified in its requirements. Note
131
+ * that resources is a map to Resources, plural. The map key corresponds to
132
+ * the key in a RunFunctionResponse's requirements.resources field. If a
133
+ * function requested required resources that did not exist, Crossplane sets
134
+ * the map key to an empty Resources message to indicate that it attempted to
135
+ * satisfy the request. This field is only populated when the function uses
136
+ * resources in its requirements.
137
+ */
138
+ requiredResources: {
139
+ [key: string]: Resources;
140
+ };
141
+ }
142
+ export interface RunFunctionRequest_ExtraResourcesEntry {
143
+ key: string;
144
+ value: Resources | undefined;
145
+ }
146
+ export interface RunFunctionRequest_CredentialsEntry {
147
+ key: string;
148
+ value: Credentials | undefined;
149
+ }
150
+ export interface RunFunctionRequest_RequiredResourcesEntry {
151
+ key: string;
152
+ value: Resources | undefined;
153
+ }
154
+ /** Credentials that a function may use to communicate with an external system. */
155
+ export interface Credentials {
156
+ /** Credential data loaded by Crossplane, for example from a Secret. */
157
+ credentialData?: CredentialData | undefined;
158
+ }
159
+ /** CredentialData loaded by Crossplane, for example from a Secret. */
160
+ export interface CredentialData {
161
+ data: {
162
+ [key: string]: Buffer;
163
+ };
164
+ }
165
+ export interface CredentialData_DataEntry {
166
+ key: string;
167
+ value: Buffer;
168
+ }
169
+ /** Resources represents the state of several Crossplane resources. */
170
+ export interface Resources {
171
+ items: Resource[];
172
+ }
173
+ /** A RunFunctionResponse contains the result of a function run. */
174
+ export interface RunFunctionResponse {
175
+ /** Metadata pertaining to this response. */
176
+ meta: ResponseMeta | undefined;
177
+ /**
178
+ * Desired state according to a function pipeline. functions may add desired
179
+ * state, and may mutate or delete any part of the desired state they are
180
+ * concerned with. A function must pass through any part of the desired state
181
+ * that it is not concerned with.
182
+ *
183
+ * Note that the desired state must be a partial object with only the fields
184
+ * that this function (and its predecessors in the pipeline) wants to have set
185
+ * in the object. Copying a non-partial observed state to desired is most
186
+ * likely not what you want to do. Leaving out fields that had been returned
187
+ * as desired before will result in them being deleted from the objects in the
188
+ * cluster.
189
+ */
190
+ desired: State | undefined;
191
+ /** Results of the function run. Results are used for observability purposes. */
192
+ results: Result[];
193
+ /**
194
+ * Optional context to be passed to the next function in the pipeline as part
195
+ * of the RunFunctionRequest. Dropped on the last function in the pipeline.
196
+ */
197
+ context?: {
198
+ [key: string]: any;
199
+ } | undefined;
200
+ /** Requirements that must be satisfied for this function to run successfully. */
201
+ requirements: Requirements | undefined;
202
+ /**
203
+ * Status conditions to be applied to the XR. Conditions may also optionally
204
+ * be applied to the XR's associated claim.
205
+ *
206
+ * Conditions are only used for composition. They're ignored by Operations.
207
+ */
208
+ conditions: Condition[];
209
+ /**
210
+ * Optional output specific to this function invocation.
211
+ *
212
+ * Only Operations use function output. XRs will discard any function output.
213
+ */
214
+ output?: {
215
+ [key: string]: any;
216
+ } | undefined;
217
+ }
218
+ /** RequestMeta contains metadata pertaining to a RunFunctionRequest. */
219
+ export interface RequestMeta {
220
+ /**
221
+ * An opaque string identifying a request. Requests with identical tags will
222
+ * be otherwise identical.
223
+ */
224
+ tag: string;
225
+ }
226
+ /** Requirements that must be satisfied for a function to run successfully. */
227
+ export interface Requirements {
228
+ /**
229
+ * Resources that this function requires. The map key uniquely identifies the
230
+ * group of resources.
231
+ *
232
+ * Deprecated: Use resources instead.
233
+ *
234
+ * @deprecated
235
+ */
236
+ extraResources: {
237
+ [key: string]: ResourceSelector;
238
+ };
239
+ /**
240
+ * Resources that this function requires. The map key uniquely identifies the
241
+ * group of resources.
242
+ */
243
+ resources: {
244
+ [key: string]: ResourceSelector;
245
+ };
246
+ }
247
+ export interface Requirements_ExtraResourcesEntry {
248
+ key: string;
249
+ value: ResourceSelector | undefined;
250
+ }
251
+ export interface Requirements_ResourcesEntry {
252
+ key: string;
253
+ value: ResourceSelector | undefined;
254
+ }
255
+ /** ResourceSelector selects a group of resources, either by name or by label. */
256
+ export interface ResourceSelector {
257
+ /** API version of resources to select. */
258
+ apiVersion: string;
259
+ /** Kind of resources to select. */
260
+ kind: string;
261
+ /** Match the resource with this name. */
262
+ matchName?: string | undefined;
263
+ /** Match all resources with these labels. */
264
+ matchLabels?: MatchLabels | undefined;
265
+ /**
266
+ * Match resources in this namespace. Omit namespace to match cluster scoped
267
+ * resources, or to match namespaced resources by labels across all
268
+ * namespaces.
269
+ */
270
+ namespace?: string | undefined;
271
+ }
272
+ /** MatchLabels defines a set of labels to match resources against. */
273
+ export interface MatchLabels {
274
+ labels: {
275
+ [key: string]: string;
276
+ };
277
+ }
278
+ export interface MatchLabels_LabelsEntry {
279
+ key: string;
280
+ value: string;
281
+ }
282
+ /** ResponseMeta contains metadata pertaining to a RunFunctionResponse. */
283
+ export interface ResponseMeta {
284
+ /**
285
+ * An opaque string identifying the content of the request. Must match the
286
+ * meta.tag of the corresponding RunFunctionRequest.
287
+ */
288
+ tag: string;
289
+ /**
290
+ * Time-to-live of this response. Crossplane will call the function again when
291
+ * the TTL expires. Crossplane may cache the response to avoid calling the
292
+ * function again until the TTL expires.
293
+ */
294
+ ttl?: Duration | undefined;
295
+ }
296
+ /** State of the XR (XR) and any resources. */
297
+ export interface State {
298
+ /** The state of the XR (XR). */
299
+ composite: Resource | undefined;
300
+ /**
301
+ * The state of any other resources. In composition functions these are the
302
+ * composed resources. In operation functions they're arbitrary resources that
303
+ * the operation wants to create or update.
304
+ */
305
+ resources: {
306
+ [key: string]: Resource;
307
+ };
308
+ }
309
+ export interface State_ResourcesEntry {
310
+ key: string;
311
+ value: Resource | undefined;
312
+ }
313
+ /** A Resource represents the state of a Kubernetes resource. */
314
+ export interface Resource {
315
+ /**
316
+ * The JSON representation of the resource.
317
+ *
318
+ * * Crossplane will set this field in a RunFunctionRequest to the entire
319
+ * observed state of a resource - including its metadata, spec, and status.
320
+ *
321
+ * * A function should set this field in a RunFunctionRequest to communicate
322
+ * the desired state of the resource.
323
+ *
324
+ * * A function may only specify the desired status of a XR - not its metadata
325
+ * or spec. A function should not return desired metadata or spec for a XR.
326
+ * This will be ignored.
327
+ *
328
+ * * A function may not specify the desired status of any other resource -
329
+ * e.g. composed resources. It may only specify their metadata and spec.
330
+ * Status will be ignored.
331
+ */
332
+ resource: {
333
+ [key: string]: any;
334
+ } | undefined;
335
+ /**
336
+ * The resource's connection details.
337
+ *
338
+ * * Crossplane will set this field in a RunFunctionRequest to communicate the
339
+ * the observed connection details of a composite or composed resource.
340
+ *
341
+ * * A function should set this field in a RunFunctionResponse to indicate the
342
+ * desired connection details of the XR.
343
+ *
344
+ * * A function should not set this field in a RunFunctionResponse to indicate
345
+ * the desired connection details of a composed resource. This will be
346
+ * ignored.
347
+ *
348
+ * Connection details are only used for composition. They're ignored by
349
+ * Operations.
350
+ */
351
+ connectionDetails: {
352
+ [key: string]: Buffer;
353
+ };
354
+ /**
355
+ * Ready indicates whether the resource should be considered ready.
356
+ *
357
+ * * Crossplane will never set this field in a RunFunctionRequest.
358
+ *
359
+ * * A function should set this field to READY_TRUE in a RunFunctionResponse
360
+ * to indicate that a desired resource is ready.
361
+ *
362
+ * * A function should set this field to READY_TRUE in a RunFunctionResponse
363
+ * to indicate that a desired XR is ready. This overwrites the standard
364
+ * readiness detection that determines the ready state of the composite by the
365
+ * ready state of the the composed resources.
366
+ *
367
+ * Ready is only used for composition. It's ignored by Operations.
368
+ */
369
+ ready: Ready;
370
+ }
371
+ export interface Resource_ConnectionDetailsEntry {
372
+ key: string;
373
+ value: Buffer;
374
+ }
375
+ /** A Result of running a function. */
376
+ export interface Result {
377
+ /** Severity of this result. */
378
+ severity: Severity;
379
+ /** Human-readable details about the result. */
380
+ message: string;
381
+ /**
382
+ * Optional PascalCase, machine-readable reason for this result. If omitted,
383
+ * the value will be ComposeResources.
384
+ */
385
+ reason?: string | undefined;
386
+ /** The resources this result targets. */
387
+ target?: Target | undefined;
388
+ }
389
+ /**
390
+ * Status condition to be applied to the XR. Condition may also optionally be
391
+ * applied to the XR's associated claim. For detailed information on proper
392
+ * usage of status conditions, please see
393
+ * https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties.
394
+ */
395
+ export interface Condition {
396
+ /** Type of condition in PascalCase. */
397
+ type: string;
398
+ /** Status of the condition. */
399
+ status: Status;
400
+ /**
401
+ * Reason contains a programmatic identifier indicating the reason for the
402
+ * condition's last transition. Producers of specific condition types may
403
+ * define expected values and meanings for this field, and whether the values
404
+ * are considered a guaranteed API. The value should be a PascalCase string.
405
+ * This field may not be empty.
406
+ */
407
+ reason: string;
408
+ /**
409
+ * Message is a human readable message indicating details about the
410
+ * transition. This may be an empty string.
411
+ */
412
+ message?: string | undefined;
413
+ /** The resources this condition targets. */
414
+ target?: Target | undefined;
415
+ }
416
+ export declare const RunFunctionRequest: MessageFns<RunFunctionRequest>;
417
+ export declare const RunFunctionRequest_ExtraResourcesEntry: MessageFns<RunFunctionRequest_ExtraResourcesEntry>;
418
+ export declare const RunFunctionRequest_CredentialsEntry: MessageFns<RunFunctionRequest_CredentialsEntry>;
419
+ export declare const RunFunctionRequest_RequiredResourcesEntry: MessageFns<RunFunctionRequest_RequiredResourcesEntry>;
420
+ export declare const Credentials: MessageFns<Credentials>;
421
+ export declare const CredentialData: MessageFns<CredentialData>;
422
+ export declare const CredentialData_DataEntry: MessageFns<CredentialData_DataEntry>;
423
+ export declare const Resources: MessageFns<Resources>;
424
+ export declare const RunFunctionResponse: MessageFns<RunFunctionResponse>;
425
+ export declare const RequestMeta: MessageFns<RequestMeta>;
426
+ export declare const Requirements: MessageFns<Requirements>;
427
+ export declare const Requirements_ExtraResourcesEntry: MessageFns<Requirements_ExtraResourcesEntry>;
428
+ export declare const Requirements_ResourcesEntry: MessageFns<Requirements_ResourcesEntry>;
429
+ export declare const ResourceSelector: MessageFns<ResourceSelector>;
430
+ export declare const MatchLabels: MessageFns<MatchLabels>;
431
+ export declare const MatchLabels_LabelsEntry: MessageFns<MatchLabels_LabelsEntry>;
432
+ export declare const ResponseMeta: MessageFns<ResponseMeta>;
433
+ export declare const State: MessageFns<State>;
434
+ export declare const State_ResourcesEntry: MessageFns<State_ResourcesEntry>;
435
+ export declare const Resource: MessageFns<Resource>;
436
+ export declare const Resource_ConnectionDetailsEntry: MessageFns<Resource_ConnectionDetailsEntry>;
437
+ export declare const Result: MessageFns<Result>;
438
+ export declare const Condition: MessageFns<Condition>;
439
+ /** A FunctionRunnerService is a function. */
440
+ export type FunctionRunnerServiceService = typeof FunctionRunnerServiceService;
441
+ export declare const FunctionRunnerServiceService: {
442
+ /** RunFunction runs the function. */
443
+ readonly runFunction: {
444
+ readonly path: "/apiextensions.fn.proto.v1.FunctionRunnerService/RunFunction";
445
+ readonly requestStream: false;
446
+ readonly responseStream: false;
447
+ readonly requestSerialize: (value: RunFunctionRequest) => Buffer;
448
+ readonly requestDeserialize: (value: Buffer) => RunFunctionRequest;
449
+ readonly responseSerialize: (value: RunFunctionResponse) => Buffer;
450
+ readonly responseDeserialize: (value: Buffer) => RunFunctionResponse;
451
+ };
452
+ };
453
+ export interface FunctionRunnerServiceServer extends UntypedServiceImplementation {
454
+ /** RunFunction runs the function. */
455
+ runFunction: handleUnaryCall<RunFunctionRequest, RunFunctionResponse>;
456
+ }
457
+ export interface FunctionRunnerServiceClient extends Client {
458
+ /** RunFunction runs the function. */
459
+ runFunction(request: RunFunctionRequest, callback: (error: ServiceError | null, response: RunFunctionResponse) => void): ClientUnaryCall;
460
+ runFunction(request: RunFunctionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RunFunctionResponse) => void): ClientUnaryCall;
461
+ runFunction(request: RunFunctionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: RunFunctionResponse) => void): ClientUnaryCall;
462
+ }
463
+ export declare const FunctionRunnerServiceClient: {
464
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): FunctionRunnerServiceClient;
465
+ service: typeof FunctionRunnerServiceService;
466
+ serviceName: string;
467
+ };
468
+ export interface DataLoaderOptions {
469
+ cache?: boolean;
470
+ }
471
+ export interface DataLoaders {
472
+ rpcDataLoaderOptions?: DataLoaderOptions;
473
+ getDataLoader<T>(identifier: string, constructorFn: () => T): T;
474
+ }
475
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
476
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
477
+ [K in keyof T]?: DeepPartial<T[K]>;
478
+ } : Partial<T>;
479
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
480
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
481
+ [K in keyof P]: Exact<P[K], I[K]>;
482
+ } & {
483
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
484
+ };
485
+ export interface MessageFns<T> {
486
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
487
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
488
+ fromJSON(object: any): T;
489
+ toJSON(message: T): unknown;
490
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
491
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
492
+ }
493
+ export {};
494
+ //# sourceMappingURL=run_function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run_function.d.ts","sourceRoot":"","sources":["../../src/proto/run_function.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAGzD,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D,qEAAqE;AACrE,oBAAY,KAAK;IACf,iBAAiB,IAAI;IACrB,0EAA0E;IAC1E,UAAU,IAAI;IACd,gFAAgF;IAChF,WAAW,IAAI;IACf,YAAY,KAAK;CAClB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,GAAG,KAAK,CAgBhD;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,CAYjD;AAED,oCAAoC;AACpC,oBAAY,QAAQ;IAClB,oBAAoB,IAAI;IACxB;;;;OAIG;IACH,cAAc,IAAI;IAClB;;;;OAIG;IACH,gBAAgB,IAAI;IACpB;;;OAGG;IACH,eAAe,IAAI;IACnB,YAAY,KAAK;CAClB;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAmBtD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,MAA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