@hatchet-dev/typescript-sdk 1.33.2 → 1.34.0-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.
Files changed (53) hide show
  1. package/clients/admin/admin-client.d.ts +6 -1
  2. package/clients/admin/admin-client.js +9 -4
  3. package/clients/admin/rpc.d.ts +13 -0
  4. package/clients/admin/rpc.js +23 -0
  5. package/clients/event/event-client.d.ts +2 -1
  6. package/clients/event/event-client.js +6 -3
  7. package/clients/event/rpc.d.ts +7 -0
  8. package/clients/event/rpc.js +13 -0
  9. package/clients/hatchet-client/hatchet-logger.js +2 -1
  10. package/clients/rest/generated/data-contracts.d.ts +2 -0
  11. package/clients/transport/grpc-target.d.ts +19 -0
  12. package/clients/transport/grpc-target.js +85 -0
  13. package/clients/transport/index.d.ts +4 -0
  14. package/clients/transport/index.js +15 -0
  15. package/clients/transport/message-bridge.d.ts +32 -0
  16. package/clients/transport/message-bridge.js +20 -0
  17. package/clients/transport/node-transport.d.ts +50 -0
  18. package/clients/transport/node-transport.js +123 -0
  19. package/clients/transport/transport.d.ts +14 -0
  20. package/clients/transport/transport.js +24 -0
  21. package/clients/transport/ts-proto-client.d.ts +41 -0
  22. package/clients/transport/ts-proto-client.js +143 -0
  23. package/core/index.d.ts +9 -0
  24. package/core/index.js +12 -0
  25. package/dist/check-exports.mjs +171 -0
  26. package/legacy/legacy-client.d.ts +4 -0
  27. package/legacy/legacy-client.js +5 -3
  28. package/package.json +95 -2
  29. package/protoc-es/dispatcher/dispatcher_pb.d.ts +1357 -0
  30. package/protoc-es/dispatcher/dispatcher_pb.js +371 -0
  31. package/protoc-es/events/events_pb.d.ts +294 -0
  32. package/protoc-es/events/events_pb.js +61 -0
  33. package/protoc-es/google/rpc/status_pb.d.ts +48 -0
  34. package/protoc-es/google/rpc/status_pb.js +27 -0
  35. package/protoc-es/v1/dispatcher_pb.d.ts +676 -0
  36. package/protoc-es/v1/dispatcher_pb.js +155 -0
  37. package/protoc-es/v1/shared/condition_pb.d.ts +166 -0
  38. package/protoc-es/v1/shared/condition_pb.js +68 -0
  39. package/protoc-es/v1/shared/trigger_pb.d.ts +160 -0
  40. package/protoc-es/v1/shared/trigger_pb.js +55 -0
  41. package/protoc-es/v1/workflows_pb.d.ts +995 -0
  42. package/protoc-es/v1/workflows_pb.js +280 -0
  43. package/protoc-es/workflows/workflows_pb.d.ts +715 -0
  44. package/protoc-es/workflows/workflows_pb.js +216 -0
  45. package/scripts/check-exports.mjs +171 -0
  46. package/util/grpc-error.d.ts +3 -1
  47. package/util/grpc-error.js +13 -4
  48. package/v1/client/admin.d.ts +2 -1
  49. package/v1/client/admin.js +34 -114
  50. package/v1/client/client.d.ts +1 -0
  51. package/v1/client/client.js +8 -5
  52. package/version.d.ts +1 -1
  53. package/version.js +1 -1
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v2.15.0 with parameter "target=ts"
3
+ // @generated from file events/events.proto (syntax proto3)
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EventsService = exports.ReplayEventRequestSchema = exports.PushEventRequestSchema = exports.BulkPushEventRequestSchema = exports.PutStreamEventResponseSchema = exports.PutStreamEventRequestSchema = exports.PutLogResponseSchema = exports.PutLogRequestSchema = exports.EventsSchema = exports.EventSchema = exports.file_events_events = void 0;
7
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
9
+ /**
10
+ * Describes the file events/events.proto.
11
+ */
12
+ exports.file_events_events = (0, codegenv2_1.fileDesc)("ChNldmVudHMvZXZlbnRzLnByb3RvItcBCgVFdmVudBIRCgl0ZW5hbnRfaWQYASABKAkSEAoIZXZlbnRfaWQYAiABKAkSCwoDa2V5GAMgASgJEg8KB3BheWxvYWQYBCABKAkSMwoPZXZlbnRfdGltZXN0YW1wGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt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hZGRpdGlvbmFsX21ldGFkYXRhQgsKCV9wcmlvcml0eUIICgZfc2NvcGUiJgoSUmVwbGF5RXZlbnRSZXF1ZXN0EhAKCGV2ZW50X2lkGAEgASgJMogCCg1FdmVudHNTZXJ2aWNlEiMKBFB1c2gSES5QdXNoRXZlbnRSZXF1ZXN0GgYuRXZlbnQiABIsCghCdWxrUHVzaBIVLkJ1bGtQdXNoRXZlbnRSZXF1ZXN0GgcuRXZlbnRzIgASMgoRUmVwbGF5U2luZ2xlRXZlbnQSEy5SZXBsYXlFdmVudFJlcXVlc3QaBi5FdmVudCIAEisKBlB1dExvZxIOLlB1dExvZ1JlcXVlc3QaDy5QdXRMb2dSZXNwb25zZSIAEkMKDlB1dFN0cmVhbUV2ZW50EhYuUHV0U3RyZWFtRXZlbnRSZXF1ZXN0GhcuUHV0U3RyZWFtRXZlbnRSZXNwb25zZSIAQkVaQ2dpdGh1Yi5jb20vaGF0Y2hldC1kZXYvaGF0Y2hldC9pbnRlcm5hbC9zZXJ2aWNlcy9pbmdlc3Rvci9jb250cmFjdHNiBnByb3RvMw", [wkt_1.file_google_protobuf_timestamp]);
13
+ /**
14
+ * Describes the message Event.
15
+ * Use `create(EventSchema)` to create a new message.
16
+ */
17
+ exports.EventSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 0);
18
+ /**
19
+ * Describes the message Events.
20
+ * Use `create(EventsSchema)` to create a new message.
21
+ */
22
+ exports.EventsSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 1);
23
+ /**
24
+ * Describes the message PutLogRequest.
25
+ * Use `create(PutLogRequestSchema)` to create a new message.
26
+ */
27
+ exports.PutLogRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 2);
28
+ /**
29
+ * Describes the message PutLogResponse.
30
+ * Use `create(PutLogResponseSchema)` to create a new message.
31
+ */
32
+ exports.PutLogResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 3);
33
+ /**
34
+ * Describes the message PutStreamEventRequest.
35
+ * Use `create(PutStreamEventRequestSchema)` to create a new message.
36
+ */
37
+ exports.PutStreamEventRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 4);
38
+ /**
39
+ * Describes the message PutStreamEventResponse.
40
+ * Use `create(PutStreamEventResponseSchema)` to create a new message.
41
+ */
42
+ exports.PutStreamEventResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 5);
43
+ /**
44
+ * Describes the message BulkPushEventRequest.
45
+ * Use `create(BulkPushEventRequestSchema)` to create a new message.
46
+ */
47
+ exports.BulkPushEventRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 6);
48
+ /**
49
+ * Describes the message PushEventRequest.
50
+ * Use `create(PushEventRequestSchema)` to create a new message.
51
+ */
52
+ exports.PushEventRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 7);
53
+ /**
54
+ * Describes the message ReplayEventRequest.
55
+ * Use `create(ReplayEventRequestSchema)` to create a new message.
56
+ */
57
+ exports.ReplayEventRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_events_events, 8);
58
+ /**
59
+ * @generated from service EventsService
60
+ */
61
+ exports.EventsService = (0, codegenv2_1.serviceDesc)(exports.file_events_events, 0);
@@ -0,0 +1,48 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Any } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file google/rpc/status.proto.
6
+ */
7
+ export declare const file_google_rpc_status: GenFile;
8
+ /**
9
+ * The `Status` type defines a logical error model that is suitable for
10
+ * different programming environments, including REST APIs and RPC APIs. It is
11
+ * used by [gRPC](https://github.com/grpc). Each `Status` message contains
12
+ * three pieces of data: error code, error message, and error details.
13
+ *
14
+ * You can find out more about this error model and how to work with it in the
15
+ * [API Design Guide](https://cloud.google.com/apis/design/errors).
16
+ *
17
+ * @generated from message google.rpc.Status
18
+ */
19
+ export type Status = Message<"google.rpc.Status"> & {
20
+ /**
21
+ * The status code, which should be an enum value of
22
+ * [google.rpc.Code][google.rpc.Code].
23
+ *
24
+ * @generated from field: int32 code = 1;
25
+ */
26
+ code: number;
27
+ /**
28
+ * A developer-facing error message, which should be in English. Any
29
+ * user-facing error message should be localized and sent in the
30
+ * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
31
+ * by the client.
32
+ *
33
+ * @generated from field: string message = 2;
34
+ */
35
+ message: string;
36
+ /**
37
+ * A list of messages that carry the error details. There is a common set of
38
+ * message types for APIs to use.
39
+ *
40
+ * @generated from field: repeated google.protobuf.Any details = 3;
41
+ */
42
+ details: Any[];
43
+ };
44
+ /**
45
+ * Describes the message google.rpc.Status.
46
+ * Use `create(StatusSchema)` to create a new message.
47
+ */
48
+ export declare const StatusSchema: GenMessage<Status>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // Copyright 2025 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.StatusSchema = exports.file_google_rpc_status = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
19
+ /**
20
+ * Describes the file google/rpc/status.proto.
21
+ */
22
+ exports.file_google_rpc_status = (0, codegenv2_1.fileDesc)("Chdnb29nbGUvcnBjL3N0YXR1cy5wcm90bxIKZ29vZ2xlLnJwYyJOCgZTdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdtZXNzYWdlGAIgASgJEiUKB2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QmEKDmNvbS5nb29nbGUucnBjQgtTdGF0dXNQcm90b1ABWjdnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL3JwYy9zdGF0dXM7c3RhdHVz+AEBogIDUlBDYgZwcm90bzM", [wkt_1.file_google_protobuf_any]);
23
+ /**
24
+ * Describes the message google.rpc.Status.
25
+ * Use `create(StatusSchema)` to create a new message.
26
+ */
27
+ exports.StatusSchema = (0, codegenv2_1.messageDesc)(exports.file_google_rpc_status, 0);