@dual-os/sdk 0.8.1 → 0.9.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.
@@ -8,7 +8,7 @@ import { Service as Service$1 } from "./OAuthFlow.js";
8
8
  import "./PluginRuntime.js";
9
9
  import { Cause, Effect, Schema, Stream } from "effect";
10
10
  declare namespace PluginRuntime_d_exports {
11
- export { AuthRequest, ChannelSettingsRequest, ExecutionRequest, Input, Invocation, IpcEvents, IpcSender, OAuthContinuation, OAuthStarted, Output, PluginExecutionError, PluginRuntime_d_exports as PluginRuntime, Request, SandboxAccessResult, cancellationTimeout, checkMessageSize, decodeInput, decodeOutput, encodeInput, encodeOutput, encodeRequest, execute, ipcMessages, maxChannelResultBytes, maxMetadataBytes, maxPayloadBytes, readBounded, responseLimit, sendIpc, verifyResponse };
11
+ export { AuthRequest, ChannelSettingsRequest, ExecutionRequest, Invocation, IpcEvents, IpcSender, OAuthContinuation, OAuthStarted, PluginExecutionError, PluginRuntime_d_exports as PluginRuntime, Request, SandboxAccessResult, cancellationTimeout, checkMessageSize, decodeInput, decodeOutput, encodeInput, encodeOutput, encodeRequest, execute, ipcMessages, maxChannelResultBytes, maxMetadataBytes, maxPayloadBytes, readBounded, responseLimit, sendIpc, verifyResponse };
12
12
  }
13
13
  declare const PluginExecutionError_base: Schema.Class<PluginExecutionError, Schema.TaggedStruct<"PluginExecutionError", {
14
14
  readonly category: Schema.Literals<readonly ["transport", "runner", "protocol", "cleanup", "artifact-expired"]>;
@@ -642,303 +642,6 @@ export declare const Request: Schema.Union<readonly [Schema.Union<readonly [Sche
642
642
  readonly pluginVersion: Schema.NonEmptyString;
643
643
  }>;
644
644
  }>]>;
645
- export type Input = typeof Input.Type;
646
- export declare const Input: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
647
- readonly connection: Schema.optionalKey<Schema.Struct<{
648
- readonly connectionId: Schema.NonEmptyString;
649
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
650
- readonly methodId: Schema.NonEmptyString;
651
- readonly providerId: Schema.NonEmptyString;
652
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
653
- }>>;
654
- readonly context: Schema.Struct<{
655
- readonly actor: Schema.Union<readonly [Schema.Struct<{
656
- readonly kind: Schema.Literal<"user">;
657
- readonly userId: Schema.NonEmptyString;
658
- }>, Schema.Struct<{
659
- readonly kind: Schema.Literal<"system">;
660
- readonly reason: Schema.optionalKey<Schema.String>;
661
- }>]>;
662
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
663
- readonly source: Schema.Struct<{
664
- readonly kind: Schema.NonEmptyString;
665
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
666
- readonly subjectId: Schema.optionalKey<Schema.String>;
667
- }>;
668
- readonly tenant: Schema.Struct<{
669
- readonly organizationId: Schema.NonEmptyString;
670
- readonly teamId: Schema.NonEmptyString;
671
- }>;
672
- }>;
673
- readonly files: Schema.optionalKey<Schema.Struct<{
674
- readonly token: Schema.NonEmptyString;
675
- readonly url: Schema.String;
676
- }>>;
677
- readonly identity: Schema.Struct<{
678
- readonly artifactDigest: Schema.String;
679
- readonly invocationId: Schema.NonEmptyString;
680
- readonly organizationId: Schema.NonEmptyString;
681
- readonly pluginKey: Schema.NonEmptyString;
682
- readonly pluginVersion: Schema.NonEmptyString;
683
- }>;
684
- readonly operation: Schema.Union<readonly [Schema.TaggedStruct<"invoke", {
685
- readonly actionId: Schema.NonEmptyString;
686
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
687
- }>, Schema.TaggedStruct<"activate", {
688
- config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
689
- state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
690
- triggerId: Schema.NonEmptyString;
691
- webhookUrl: Schema.String;
692
- }>, Schema.TaggedStruct<"deactivate", {
693
- config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
694
- state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
695
- triggerId: Schema.NonEmptyString;
696
- webhookUrl: Schema.String;
697
- }>, Schema.TaggedStruct<"verify", {
698
- config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
699
- state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
700
- triggerId: Schema.NonEmptyString;
701
- webhookUrl: Schema.String;
702
- request: Schema.Struct<{
703
- readonly body: Schema.Codec<Schema.Json, Schema.Json, never, never>;
704
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
705
- readonly method: Schema.optionalKey<Schema.String>;
706
- readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>>;
707
- readonly rawBody: Schema.Uint8ArrayFromBase64;
708
- readonly url: Schema.optionalKey<Schema.String>;
709
- }>;
710
- }>, Schema.TaggedStruct<"parse", {
711
- config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
712
- state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
713
- triggerId: Schema.NonEmptyString;
714
- webhookUrl: Schema.String;
715
- request: Schema.Struct<{
716
- readonly body: Schema.Codec<Schema.Json, Schema.Json, never, never>;
717
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
718
- readonly method: Schema.optionalKey<Schema.String>;
719
- readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>>;
720
- readonly rawBody: Schema.Uint8ArrayFromBase64;
721
- readonly url: Schema.optionalKey<Schema.String>;
722
- }>;
723
- }>, Schema.TaggedStruct<"poll", {
724
- config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
725
- state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
726
- triggerId: Schema.NonEmptyString;
727
- }>, Schema.TaggedStruct<"channelCheckAccess", {
728
- readonly channelId: Schema.NonEmptyString;
729
- readonly definitionSettings: Schema.Codec<Schema.Json, Schema.Json, never, never>;
730
- readonly deploymentSettings: Schema.Codec<Schema.Json, Schema.Json, never, never>;
731
- readonly identity: Schema.Struct<{
732
- readonly conversation: Schema.Struct<{
733
- readonly conversationKey: Schema.NonEmptyString;
734
- readonly kind: Schema.Literals<readonly ["direct", "group"]>;
735
- readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
736
- }>;
737
- readonly senderKey: Schema.NonEmptyString;
738
- }>;
739
- }>, Schema.TaggedStruct<"channelExecute", {
740
- readonly channelId: Schema.NonEmptyString;
741
- readonly definitionSettings: Schema.Codec<Schema.Json, Schema.Json, never, never>;
742
- readonly deploymentSettings: Schema.Codec<Schema.Json, Schema.Json, never, never>;
743
- readonly command: Schema.Codec<Schema.Json, Schema.Json, never, never>;
744
- }>, Schema.Union<readonly [Schema.TaggedStruct<"decodeSetup", {
745
- authMethodId: Schema.NonEmptyString;
746
- providerId: Schema.NonEmptyString;
747
- setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
748
- }>, Schema.TaggedStruct<"prepare", {
749
- readonly authMethodId: Schema.NonEmptyString;
750
- readonly providerId: Schema.NonEmptyString;
751
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
752
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
753
- }>, Schema.TaggedStruct<"prepareOAuth2Tokens", {
754
- readonly authMethodId: Schema.NonEmptyString;
755
- readonly providerId: Schema.NonEmptyString;
756
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
757
- readonly tokens: Schema.Struct<{
758
- readonly accessToken: Schema.String;
759
- readonly expiresAt: Schema.optionalKey<Schema.Number>;
760
- readonly expiresIn: Schema.optionalKey<Schema.Number>;
761
- readonly raw: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
762
- readonly refreshToken: Schema.optionalKey<Schema.String>;
763
- readonly scope: Schema.optionalKey<Schema.String>;
764
- readonly tokenType: Schema.optionalKey<Schema.String>;
765
- }>;
766
- }>, Schema.TaggedStruct<"refresh", {
767
- readonly authMethodId: Schema.NonEmptyString;
768
- readonly providerId: Schema.NonEmptyString;
769
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
770
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
771
- readonly minValidityMs: Schema.Finite;
772
- readonly now: Schema.Finite;
773
- readonly reason: Schema.Literals<readonly ["before-use", "forced"]>;
774
- }>, Schema.TaggedStruct<"resolve", {
775
- readonly authMethodId: Schema.NonEmptyString;
776
- readonly providerId: Schema.NonEmptyString;
777
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
778
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
779
- }>, Schema.TaggedStruct<"display", {
780
- readonly authMethodId: Schema.NonEmptyString;
781
- readonly providerId: Schema.NonEmptyString;
782
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
783
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
784
- }>, Schema.TaggedStruct<"test", {
785
- readonly authMethodId: Schema.NonEmptyString;
786
- readonly providerId: Schema.NonEmptyString;
787
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
788
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
789
- }>]>]>;
790
- }>, Schema.TaggedStruct<"auth", {
791
- readonly identity: Schema.Struct<{
792
- readonly artifactDigest: Schema.String;
793
- readonly invocationId: Schema.NonEmptyString;
794
- readonly organizationId: Schema.NonEmptyString;
795
- readonly pluginKey: Schema.NonEmptyString;
796
- readonly pluginVersion: Schema.NonEmptyString;
797
- }>;
798
- readonly operation: Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"decodeSetup", {
799
- authMethodId: Schema.NonEmptyString;
800
- providerId: Schema.NonEmptyString;
801
- setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
802
- }>, Schema.TaggedStruct<"prepare", {
803
- readonly authMethodId: Schema.NonEmptyString;
804
- readonly providerId: Schema.NonEmptyString;
805
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
806
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
807
- }>, Schema.TaggedStruct<"prepareOAuth2Tokens", {
808
- readonly authMethodId: Schema.NonEmptyString;
809
- readonly providerId: Schema.NonEmptyString;
810
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
811
- readonly tokens: Schema.Struct<{
812
- readonly accessToken: Schema.String;
813
- readonly expiresAt: Schema.optionalKey<Schema.Number>;
814
- readonly expiresIn: Schema.optionalKey<Schema.Number>;
815
- readonly raw: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
816
- readonly refreshToken: Schema.optionalKey<Schema.String>;
817
- readonly scope: Schema.optionalKey<Schema.String>;
818
- readonly tokenType: Schema.optionalKey<Schema.String>;
819
- }>;
820
- }>, Schema.TaggedStruct<"refresh", {
821
- readonly authMethodId: Schema.NonEmptyString;
822
- readonly providerId: Schema.NonEmptyString;
823
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
824
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
825
- readonly minValidityMs: Schema.Finite;
826
- readonly now: Schema.Finite;
827
- readonly reason: Schema.Literals<readonly ["before-use", "forced"]>;
828
- }>, Schema.TaggedStruct<"resolve", {
829
- readonly authMethodId: Schema.NonEmptyString;
830
- readonly providerId: Schema.NonEmptyString;
831
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
832
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
833
- }>, Schema.TaggedStruct<"display", {
834
- readonly authMethodId: Schema.NonEmptyString;
835
- readonly providerId: Schema.NonEmptyString;
836
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
837
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
838
- }>, Schema.TaggedStruct<"test", {
839
- readonly authMethodId: Schema.NonEmptyString;
840
- readonly providerId: Schema.NonEmptyString;
841
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
842
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
843
- }>]>, Schema.TaggedStruct<"oauthStart", {
844
- readonly authMethodId: Schema.NonEmptyString;
845
- readonly providerId: Schema.NonEmptyString;
846
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
847
- readonly redirectUri: Schema.String;
848
- }>, Schema.TaggedStruct<"oauthComplete", {
849
- readonly authMethodId: Schema.NonEmptyString;
850
- readonly providerId: Schema.NonEmptyString;
851
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
852
- readonly continuation: Schema.Struct<{
853
- readonly expiresAt: Schema.DateFromString;
854
- readonly pkceVerifier: Schema.NullOr<Schema.String>;
855
- readonly redirectUri: Schema.String;
856
- readonly state: Schema.String;
857
- }>;
858
- readonly query: Schema.$Record<Schema.String, Schema.String>;
859
- }>, Schema.TaggedStruct<"sandboxAccess", {
860
- readonly authMethodId: Schema.NonEmptyString;
861
- readonly providerId: Schema.NonEmptyString;
862
- readonly setup: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
863
- readonly material: Schema.Codec<Schema.Json, Schema.Json, never, never>;
864
- readonly request: Schema.optionalKey<Schema.Struct<{
865
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
866
- readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE", "QUERY"]>;
867
- readonly url: Schema.String;
868
- }>>;
869
- }>]>;
870
- }>, Schema.TaggedStruct<"channelSettings", {
871
- readonly identity: Schema.Struct<{
872
- readonly artifactDigest: Schema.String;
873
- readonly invocationId: Schema.NonEmptyString;
874
- readonly organizationId: Schema.NonEmptyString;
875
- readonly pluginKey: Schema.NonEmptyString;
876
- readonly pluginVersion: Schema.NonEmptyString;
877
- }>;
878
- readonly operation: Schema.TaggedStruct<"decodeChannelSettings", {
879
- readonly channelId: Schema.NonEmptyString;
880
- readonly field: Schema.Literals<readonly ["definitionSettings", "deploymentSettings"]>;
881
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
882
- }>;
883
- }>]>, Schema.TaggedStruct<"extract", {
884
- readonly identity: Schema.Struct<{
885
- readonly artifactDigest: Schema.String;
886
- readonly invocationId: Schema.NonEmptyString;
887
- readonly organizationId: Schema.NonEmptyString;
888
- readonly pluginKey: Schema.NonEmptyString;
889
- readonly pluginVersion: Schema.NonEmptyString;
890
- }>;
891
- }>]>, Schema.TaggedStruct<"cancel", {
892
- readonly identity: Schema.Struct<{
893
- readonly artifactDigest: Schema.String;
894
- readonly invocationId: Schema.NonEmptyString;
895
- readonly organizationId: Schema.NonEmptyString;
896
- readonly pluginKey: Schema.NonEmptyString;
897
- readonly pluginVersion: Schema.NonEmptyString;
898
- }>;
899
- }>]>;
900
- export type Output = typeof Output.Type;
901
- export declare const Output: Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"success", {
902
- readonly identity: Schema.Struct<{
903
- readonly artifactDigest: Schema.String;
904
- readonly invocationId: Schema.NonEmptyString;
905
- readonly organizationId: Schema.NonEmptyString;
906
- readonly pluginKey: Schema.NonEmptyString;
907
- readonly pluginVersion: Schema.NonEmptyString;
908
- }>;
909
- readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
910
- }>, Schema.TaggedStruct<"failure", {
911
- readonly error: Schema.Union<readonly [typeof ActionHandlerError, typeof RetryableActionHandlerError, Schema.Struct<{
912
- readonly category: Schema.Literals<readonly ["validation", "connection", "handler", "initialization", "protocol"]>;
913
- readonly channel: Schema.optionalKey<Schema.Struct<{
914
- readonly code: Schema.Literals<readonly ["invalid_definition", "not_found", "invalid_input", "invalid_auth", "unsupported_feature", "invalid_result", "handler_unavailable", "provider_failure"]>;
915
- readonly providerCode: Schema.optionalKey<Schema.Literals<readonly ["rejected", "unauthorized", "rate_limited", "unavailable", "unknown_completion", "window_closed"]>>;
916
- }>>;
917
- readonly code: Schema.String;
918
- readonly fields: Schema.optionalKey<Schema.$Array<Schema.Struct<{
919
- readonly path: Schema.String;
920
- }>>>;
921
- readonly message: Schema.String;
922
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Finite>;
923
- readonly retryable: Schema.Boolean;
924
- readonly status: Schema.optionalKey<Schema.Int>;
925
- }>]>;
926
- readonly identity: Schema.Struct<{
927
- readonly artifactDigest: Schema.String;
928
- readonly invocationId: Schema.NonEmptyString;
929
- readonly organizationId: Schema.NonEmptyString;
930
- readonly pluginKey: Schema.NonEmptyString;
931
- readonly pluginVersion: Schema.NonEmptyString;
932
- }>;
933
- }>]>, Schema.TaggedStruct<"interrupted", {
934
- readonly identity: Schema.Struct<{
935
- readonly artifactDigest: Schema.String;
936
- readonly invocationId: Schema.NonEmptyString;
937
- readonly organizationId: Schema.NonEmptyString;
938
- readonly pluginKey: Schema.NonEmptyString;
939
- readonly pluginVersion: Schema.NonEmptyString;
940
- }>;
941
- }>]>;
942
645
  export declare function checkMessageSize(value: unknown, maximum: number): Effect.Effect<void, never, never> | Effect.Effect<never, PluginExecutionError, never>;
943
646
  export declare const encodeInput: (input: {
944
647
  readonly _tag: "auth";
@@ -1037,15 +740,6 @@ export declare const encodeInput: (input: {
1037
740
  readonly setup?: Schema.Json;
1038
741
  readonly material: Schema.Json;
1039
742
  };
1040
- } | {
1041
- readonly _tag: "cancel";
1042
- readonly identity: {
1043
- readonly artifactDigest: string;
1044
- readonly invocationId: string;
1045
- readonly organizationId: string;
1046
- readonly pluginKey: string;
1047
- readonly pluginVersion: string;
1048
- };
1049
743
  } | {
1050
744
  readonly _tag: "channelSettings";
1051
745
  readonly identity: {
@@ -1340,15 +1034,6 @@ export declare const encodeInput: (input: {
1340
1034
  readonly setup?: Schema.Json;
1341
1035
  readonly material: Schema.Json;
1342
1036
  };
1343
- } | {
1344
- readonly _tag: "cancel";
1345
- readonly identity: {
1346
- readonly artifactDigest: string;
1347
- readonly invocationId: string;
1348
- readonly organizationId: string;
1349
- readonly pluginKey: string;
1350
- readonly pluginVersion: string;
1351
- };
1352
1037
  } | {
1353
1038
  readonly _tag: "channelSettings";
1354
1039
  readonly identity: {
@@ -1644,15 +1329,6 @@ export declare const decodeInput: (input: unknown) => Effect.Effect<{
1644
1329
  readonly setup?: Schema.Json;
1645
1330
  readonly material: Schema.Json;
1646
1331
  };
1647
- } | {
1648
- readonly _tag: "cancel";
1649
- readonly identity: {
1650
- readonly artifactDigest: string;
1651
- readonly invocationId: string;
1652
- readonly organizationId: string;
1653
- readonly pluginKey: string;
1654
- readonly pluginVersion: string;
1655
- };
1656
1332
  } | {
1657
1333
  readonly _tag: "channelSettings";
1658
1334
  readonly identity: {
@@ -1875,15 +1551,6 @@ export declare const encodeOutput: (output: {
1875
1551
  readonly pluginKey: string;
1876
1552
  readonly pluginVersion: string;
1877
1553
  };
1878
- } | {
1879
- readonly _tag: "interrupted";
1880
- readonly identity: {
1881
- readonly artifactDigest: string;
1882
- readonly invocationId: string;
1883
- readonly organizationId: string;
1884
- readonly pluginKey: string;
1885
- readonly pluginVersion: string;
1886
- };
1887
1554
  } | {
1888
1555
  readonly _tag: "success";
1889
1556
  readonly identity: {
@@ -1931,15 +1598,6 @@ export declare const encodeOutput: (output: {
1931
1598
  readonly pluginKey: string;
1932
1599
  readonly pluginVersion: string;
1933
1600
  };
1934
- } | {
1935
- readonly _tag: "interrupted";
1936
- readonly identity: {
1937
- readonly artifactDigest: string;
1938
- readonly invocationId: string;
1939
- readonly organizationId: string;
1940
- readonly pluginKey: string;
1941
- readonly pluginVersion: string;
1942
- };
1943
1601
  } | {
1944
1602
  readonly _tag: "success";
1945
1603
  readonly identity: {
@@ -1975,15 +1633,6 @@ export declare const decodeOutput: (output: unknown) => Effect.Effect<{
1975
1633
  readonly pluginKey: string;
1976
1634
  readonly pluginVersion: string;
1977
1635
  };
1978
- } | {
1979
- readonly _tag: "interrupted";
1980
- readonly identity: {
1981
- readonly artifactDigest: string;
1982
- readonly invocationId: string;
1983
- readonly organizationId: string;
1984
- readonly pluginKey: string;
1985
- readonly pluginVersion: string;
1986
- };
1987
1636
  } | {
1988
1637
  readonly _tag: "success";
1989
1638
  readonly identity: {
@@ -2543,7 +2192,7 @@ export declare const encodeRequest: (request: {
2543
2192
  };
2544
2193
  }) => Effect.Effect<string, PluginExecutionError, never>;
2545
2194
  export declare const readBounded: <E, R>(input: Stream.Stream<Uint8Array<ArrayBufferLike>, E, R>, maximum?: number | undefined) => Effect.Effect<string, PluginExecutionError, R>;
2546
- export declare const verifyResponse: <Response extends Output>(request: {
2195
+ export declare const verifyResponse: (request: {
2547
2196
  readonly _tag: "auth";
2548
2197
  readonly identity: {
2549
2198
  readonly artifactDigest: string;
@@ -2837,7 +2486,75 @@ export declare const verifyResponse: <Response extends Output>(request: {
2837
2486
  readonly url?: string;
2838
2487
  };
2839
2488
  };
2840
- }, response: Response) => Effect.Effect<Response, PluginExecutionError, never>;
2489
+ }, response: {
2490
+ readonly _tag: "failure";
2491
+ readonly error: ActionHandlerError | RetryableActionHandlerError | {
2492
+ readonly category: "connection" | "handler" | "initialization" | "protocol" | "validation";
2493
+ readonly channel?: {
2494
+ readonly code: "handler_unavailable" | "invalid_auth" | "invalid_definition" | "invalid_input" | "invalid_result" | "not_found" | "provider_failure" | "unsupported_feature";
2495
+ readonly providerCode?: "rate_limited" | "rejected" | "unauthorized" | "unavailable" | "unknown_completion" | "window_closed";
2496
+ };
2497
+ readonly code: string;
2498
+ readonly fields?: readonly {
2499
+ readonly path: string;
2500
+ }[];
2501
+ readonly message: string;
2502
+ readonly retryAfterSeconds?: number;
2503
+ readonly retryable: boolean;
2504
+ readonly status?: number;
2505
+ };
2506
+ readonly identity: {
2507
+ readonly artifactDigest: string;
2508
+ readonly invocationId: string;
2509
+ readonly organizationId: string;
2510
+ readonly pluginKey: string;
2511
+ readonly pluginVersion: string;
2512
+ };
2513
+ } | {
2514
+ readonly _tag: "success";
2515
+ readonly identity: {
2516
+ readonly artifactDigest: string;
2517
+ readonly invocationId: string;
2518
+ readonly organizationId: string;
2519
+ readonly pluginKey: string;
2520
+ readonly pluginVersion: string;
2521
+ };
2522
+ readonly value?: Schema.Json;
2523
+ }) => Effect.Effect<{
2524
+ readonly _tag: "failure";
2525
+ readonly error: ActionHandlerError | RetryableActionHandlerError | {
2526
+ readonly category: "connection" | "handler" | "initialization" | "protocol" | "validation";
2527
+ readonly channel?: {
2528
+ readonly code: "handler_unavailable" | "invalid_auth" | "invalid_definition" | "invalid_input" | "invalid_result" | "not_found" | "provider_failure" | "unsupported_feature";
2529
+ readonly providerCode?: "rate_limited" | "rejected" | "unauthorized" | "unavailable" | "unknown_completion" | "window_closed";
2530
+ };
2531
+ readonly code: string;
2532
+ readonly fields?: readonly {
2533
+ readonly path: string;
2534
+ }[];
2535
+ readonly message: string;
2536
+ readonly retryAfterSeconds?: number;
2537
+ readonly retryable: boolean;
2538
+ readonly status?: number;
2539
+ };
2540
+ readonly identity: {
2541
+ readonly artifactDigest: string;
2542
+ readonly invocationId: string;
2543
+ readonly organizationId: string;
2544
+ readonly pluginKey: string;
2545
+ readonly pluginVersion: string;
2546
+ };
2547
+ } | {
2548
+ readonly _tag: "success";
2549
+ readonly identity: {
2550
+ readonly artifactDigest: string;
2551
+ readonly invocationId: string;
2552
+ readonly organizationId: string;
2553
+ readonly pluginKey: string;
2554
+ readonly pluginVersion: string;
2555
+ };
2556
+ readonly value?: Schema.Json;
2557
+ }, PluginExecutionError, never>;
2841
2558
  /** Execute one request against the plugin built in this process; only the guest runner calls it in production. */
2842
2559
  export declare const execute: (request: {
2843
2560
  readonly _tag: "auth";
@@ -1 +1 @@
1
- {"version":3,"file":"PluginRuntime.d.ts","names":["DualRuntime.ActionHandlerError","DualRuntime.RetryableActionHandlerError","DualRuntime.ActionHandlerNotFoundError","DualRuntime.ActionNotFoundError","_$__AuthMethod_ts0.AuthMethodHookError","DualRuntime.AuthMethodNotFoundError","_$__AgentChannel_ts0.ChannelError","DualRuntime.ConnectionIdNotAllowedError","DualRuntime.ConnectionReauthorizationRequiredError","DualRuntime.ConnectionRequiredError","DualRuntime.ConnectionResolverStoreError","DualRuntime.ConnectionSelectionRequiredError","_$__AuthMethod_ts0.ExpectedOAuth2MethodError","DualRuntime.InvalidActionInputError","DualRuntime.InvalidActionOutputError","DualRuntime.InvalidConnectionIdError","DualRuntime.InvalidResolvedConnectionError","_$__AuthMethod_ts0.OAuth2RefreshTokenUnavailableError","DualRuntime.Service","OAuthFlow.Service"],"sources":["../src/PluginRuntime.ts"],"mappings":";;;;;;;;;;;;;;;;;qBASa,6BAA6B;qBAS7B;qBACA;;qBAEA;qBACA;;iBAGI;WACN,KAAK,eAAe,WAAW;WAC/B,iBAAiB,eAAe,WAAW;;;iBAIrC;WACN;WACA,SAAS;;;wBAIJ,YAAY,SAAS,YAAS,OAAA,gBAAA;;wBAqC9B,QAAQ,SAAS,WAAW,gBAAa,OAAA,aAAA;YAoB7C,2BAA2B,kBAAkB;qBAC5C,mBAAiB,OAAA;;;;;;YAOlB,sBAAsB,aAAa;qBAClC,cAAY,OAAA;;;;;;;;;;YAYb,6BAA6B,oBAAoB;qBAChD,qBAAmB,OAAA;;;;YAKpB,qBAAqB,YAAY;qBAChC,aAAW,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoCZ,gCAAgC,uBAAuB;qBACtD,wBAAsB,OAAA;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBhF,UAAA,aAAA,OAAA,OAAA,UAAA;;qBAuGW,UAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjDa;;;;;;;;;WAqCE;;;;;;;;;UAgBjCkB,UAAAC"}
1
+ {"version":3,"file":"PluginRuntime.d.ts","names":["DualRuntime.ActionHandlerError","DualRuntime.RetryableActionHandlerError","DualRuntime.ActionHandlerNotFoundError","DualRuntime.ActionNotFoundError","_$__AuthMethod_ts0.AuthMethodHookError","DualRuntime.AuthMethodNotFoundError","_$__AgentChannel_ts0.ChannelError","DualRuntime.ConnectionIdNotAllowedError","DualRuntime.ConnectionReauthorizationRequiredError","DualRuntime.ConnectionRequiredError","DualRuntime.ConnectionResolverStoreError","DualRuntime.ConnectionSelectionRequiredError","_$__AuthMethod_ts0.ExpectedOAuth2MethodError","DualRuntime.InvalidActionInputError","DualRuntime.InvalidActionOutputError","DualRuntime.InvalidConnectionIdError","DualRuntime.InvalidResolvedConnectionError","_$__AuthMethod_ts0.OAuth2RefreshTokenUnavailableError","DualRuntime.Service","OAuthFlow.Service"],"sources":["../src/PluginRuntime.ts"],"mappings":";;;;;;;;;;;;;;;;;qBASa,6BAA6B;qBAS7B;qBACA;;qBAEA;qBACA;;iBAGI;WACN,KAAK,eAAe,WAAW;WAC/B,iBAAiB,eAAe,WAAW;;;iBAIrC;WACN;WACA,SAAS;;;wBAIJ,YAAY,SAAS,YAAS,OAAA,gBAAA;;wBAqC9B,QAAQ,SAAS,WAAW,gBAAa,OAAA,aAAA;YAoB7C,2BAA2B,kBAAkB;qBAC5C,mBAAiB,OAAA;;;;;;YAOlB,sBAAsB,aAAa;qBAClC,cAAY,OAAA;;;;;;;;;;YAYb,6BAA6B,oBAAoB;qBAChD,qBAAmB,OAAA;;;;YAKpB,qBAAqB,YAAY;qBAChC,aAAW,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoCZ,gCAAgC,uBAAuB;qBACtD,wBAAsB,OAAA;;;;;;;;;;;;;;YASvB,0BAA0B,iBAAiB;qBAC1C,kBAAgB,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjDa;;;;;;;;;WAqCE;;;;;;;;;UAgBjCkB,UAAAC"}
@@ -11,11 +11,9 @@ var PluginRuntime_exports = /* @__PURE__ */ __exportAll({
11
11
  AuthRequest: () => AuthRequest,
12
12
  ChannelSettingsRequest: () => ChannelSettingsRequest,
13
13
  ExecutionRequest: () => ExecutionRequest,
14
- Input: () => Input,
15
14
  Invocation: () => Invocation,
16
15
  OAuthContinuation: () => OAuthContinuation,
17
16
  OAuthStarted: () => OAuthStarted,
18
- Output: () => Output,
19
17
  PluginExecutionError: () => PluginExecutionError,
20
18
  PluginRuntime: () => PluginRuntime_exports,
21
19
  Request: () => Request,
@@ -164,8 +162,6 @@ const ExecutionRequest = Schema.Union([
164
162
  ChannelSettingsRequest
165
163
  ]);
166
164
  const Request = Schema.Union([ExecutionRequest, Schema.TaggedStruct("extract", { identity: Identity })]);
167
- const Input = Schema.Union([Request, Schema.TaggedStruct("cancel", { identity: Identity })]);
168
- const Output = Schema.Union([Response, Schema.TaggedStruct("interrupted", { identity: Identity })]);
169
165
  function checkMessageSize(value, maximum) {
170
166
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum) return Effect.void;
171
167
  return Effect.fail(PluginExecutionError.make({
@@ -174,24 +170,24 @@ function checkMessageSize(value, maximum) {
174
170
  }));
175
171
  }
176
172
  const encodeInput = Effect.fnUntraced(function* (input) {
177
- const encoded = yield* Schema.encodeEffect(Input)(input);
173
+ const encoded = yield* Schema.encodeEffect(Request)(input);
178
174
  yield* checkMessageSize(encoded, maxPayloadBytes);
179
175
  return encoded;
180
176
  });
181
177
  const decodeInput = Effect.fnUntraced(function* (input) {
182
178
  const json = yield* Schema.decodeUnknownEffect(Schema.Json)(input);
183
179
  yield* checkMessageSize(json, maxPayloadBytes);
184
- return yield* Schema.decodeUnknownEffect(Input)(json);
180
+ return yield* Schema.decodeUnknownEffect(Request)(json);
185
181
  });
186
182
  const encodeOutput = Effect.fnUntraced(function* (output, maximum) {
187
- const encoded = yield* Schema.encodeEffect(Output)(output);
183
+ const encoded = yield* Schema.encodeEffect(Response)(output);
188
184
  yield* checkMessageSize(encoded, maximum);
189
185
  return encoded;
190
186
  });
191
187
  const decodeOutput = Effect.fnUntraced(function* (output) {
192
188
  const json = yield* Schema.decodeUnknownEffect(Schema.Json)(output);
193
189
  yield* checkMessageSize(json, maxMetadataBytes);
194
- return yield* Schema.decodeUnknownEffect(Output)(json);
190
+ return yield* Schema.decodeUnknownEffect(Response)(json);
195
191
  });
196
192
  function responseLimit(request) {
197
193
  if ("_tag" in request && request._tag === "extract") return maxMetadataBytes;
@@ -331,6 +327,6 @@ const execute = Effect.fnUntraced(function* (request) {
331
327
  if (request._tag === "auth") return yield* executeAuth(request);
332
328
  return yield* executeChannelSettings(request);
333
329
  });
334
- export { AuthRequest, ChannelSettingsRequest, ExecutionRequest, Input, Invocation, OAuthContinuation, OAuthStarted, Output, PluginExecutionError, PluginRuntime_exports as PluginRuntime, PluginRuntime_exports, Request, SandboxAccessResult, cancellationTimeout, checkMessageSize, decodeInput, decodeOutput, encodeInput, encodeOutput, encodeRequest, execute, ipcMessages, maxChannelResultBytes, maxMetadataBytes, maxPayloadBytes, readBounded, responseLimit, sendIpc, verifyResponse };
330
+ export { AuthRequest, ChannelSettingsRequest, ExecutionRequest, Invocation, OAuthContinuation, OAuthStarted, PluginExecutionError, PluginRuntime_exports as PluginRuntime, PluginRuntime_exports, Request, SandboxAccessResult, cancellationTimeout, checkMessageSize, decodeInput, decodeOutput, encodeInput, encodeOutput, encodeRequest, execute, ipcMessages, maxChannelResultBytes, maxMetadataBytes, maxPayloadBytes, readBounded, responseLimit, sendIpc, verifyResponse };
335
331
 
336
332
  //# sourceMappingURL=PluginRuntime.js.map