shoal-web-sdk 1.0.71 → 1.0.73

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.
@@ -765,7 +765,30 @@ export type FunctionNodeProps = {
765
765
  env?: Array<string>;
766
766
  };
767
767
  export type QueueNodeProps = {
768
- foobar?: string;
768
+ /**
769
+ * Minimum duration to retain unacknowledged messages on the topic, as a GCP duration string (e.g. "604800s"). Omitted/null uses the provider default.
770
+ */
771
+ messageRetentionDuration?: string;
772
+ subscriptions: Array<QueueSubscriptionProps>;
773
+ };
774
+ export type QueueSubscriptionProps = {
775
+ name: string;
776
+ /**
777
+ * When set, delivers as a push subscription to this endpoint; otherwise pull.
778
+ */
779
+ pushEndpoint?: string;
780
+ ackDeadlineSeconds: number;
781
+ /**
782
+ * How long unacknowledged messages are retained, as a GCP duration string.
783
+ */
784
+ messageRetentionDuration?: string;
785
+ retainAckedMessages: boolean;
786
+ enableMessageOrdering: boolean;
787
+ enableExactlyOnceDelivery: boolean;
788
+ /**
789
+ * Optional filter expression evaluated against message attributes.
790
+ */
791
+ messageFilter?: string;
769
792
  };
770
793
  export type ProxyNodeProps = {
771
794
  subdomain?: string;
@@ -932,8 +932,28 @@ export declare const zFunctionNodeProps: z.ZodObject<{
932
932
  installationId: z.ZodOptional<z.ZodString>;
933
933
  env: z.ZodOptional<z.ZodArray<z.ZodString>>;
934
934
  }, z.core.$strip>;
935
+ export declare const zQueueSubscriptionProps: z.ZodObject<{
936
+ name: z.ZodString;
937
+ pushEndpoint: z.ZodOptional<z.ZodString>;
938
+ ackDeadlineSeconds: z.ZodInt;
939
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
940
+ retainAckedMessages: z.ZodBoolean;
941
+ enableMessageOrdering: z.ZodBoolean;
942
+ enableExactlyOnceDelivery: z.ZodBoolean;
943
+ messageFilter: z.ZodOptional<z.ZodString>;
944
+ }, z.core.$strip>;
935
945
  export declare const zQueueNodeProps: z.ZodObject<{
936
- foobar: z.ZodOptional<z.ZodString>;
946
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
947
+ subscriptions: z.ZodArray<z.ZodObject<{
948
+ name: z.ZodString;
949
+ pushEndpoint: z.ZodOptional<z.ZodString>;
950
+ ackDeadlineSeconds: z.ZodInt;
951
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
952
+ retainAckedMessages: z.ZodBoolean;
953
+ enableMessageOrdering: z.ZodBoolean;
954
+ enableExactlyOnceDelivery: z.ZodBoolean;
955
+ messageFilter: z.ZodOptional<z.ZodString>;
956
+ }, z.core.$strip>>;
937
957
  }, z.core.$strip>;
938
958
  export declare const zProxyNodeProps: z.ZodObject<{
939
959
  subdomain: z.ZodOptional<z.ZodString>;
@@ -1165,7 +1185,17 @@ export declare const zNode: z.ZodObject<{
1165
1185
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1166
1186
  typ: z.ZodLiteral<"queue">;
1167
1187
  }, z.core.$strip>, z.ZodObject<{
1168
- foobar: z.ZodOptional<z.ZodString>;
1188
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1189
+ subscriptions: z.ZodArray<z.ZodObject<{
1190
+ name: z.ZodString;
1191
+ pushEndpoint: z.ZodOptional<z.ZodString>;
1192
+ ackDeadlineSeconds: z.ZodInt;
1193
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1194
+ retainAckedMessages: z.ZodBoolean;
1195
+ enableMessageOrdering: z.ZodBoolean;
1196
+ enableExactlyOnceDelivery: z.ZodBoolean;
1197
+ messageFilter: z.ZodOptional<z.ZodString>;
1198
+ }, z.core.$strip>>;
1169
1199
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1170
1200
  typ: z.ZodLiteral<"proxy">;
1171
1201
  }, z.core.$strip>, z.ZodObject<{
@@ -1397,7 +1427,17 @@ export declare const zNodes: z.ZodObject<{
1397
1427
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1398
1428
  typ: z.ZodLiteral<"queue">;
1399
1429
  }, z.core.$strip>, z.ZodObject<{
1400
- foobar: z.ZodOptional<z.ZodString>;
1430
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1431
+ subscriptions: z.ZodArray<z.ZodObject<{
1432
+ name: z.ZodString;
1433
+ pushEndpoint: z.ZodOptional<z.ZodString>;
1434
+ ackDeadlineSeconds: z.ZodInt;
1435
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1436
+ retainAckedMessages: z.ZodBoolean;
1437
+ enableMessageOrdering: z.ZodBoolean;
1438
+ enableExactlyOnceDelivery: z.ZodBoolean;
1439
+ messageFilter: z.ZodOptional<z.ZodString>;
1440
+ }, z.core.$strip>>;
1401
1441
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1402
1442
  typ: z.ZodLiteral<"proxy">;
1403
1443
  }, z.core.$strip>, z.ZodObject<{
@@ -1632,7 +1672,17 @@ export declare const zGraph: z.ZodObject<{
1632
1672
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1633
1673
  typ: z.ZodLiteral<"queue">;
1634
1674
  }, z.core.$strip>, z.ZodObject<{
1635
- foobar: z.ZodOptional<z.ZodString>;
1675
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1676
+ subscriptions: z.ZodArray<z.ZodObject<{
1677
+ name: z.ZodString;
1678
+ pushEndpoint: z.ZodOptional<z.ZodString>;
1679
+ ackDeadlineSeconds: z.ZodInt;
1680
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1681
+ retainAckedMessages: z.ZodBoolean;
1682
+ enableMessageOrdering: z.ZodBoolean;
1683
+ enableExactlyOnceDelivery: z.ZodBoolean;
1684
+ messageFilter: z.ZodOptional<z.ZodString>;
1685
+ }, z.core.$strip>>;
1636
1686
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1637
1687
  typ: z.ZodLiteral<"proxy">;
1638
1688
  }, z.core.$strip>, z.ZodObject<{
@@ -1872,7 +1922,17 @@ export declare const zBlueprintDetail: z.ZodObject<{
1872
1922
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1873
1923
  typ: z.ZodLiteral<"queue">;
1874
1924
  }, z.core.$strip>, z.ZodObject<{
1875
- foobar: z.ZodOptional<z.ZodString>;
1925
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1926
+ subscriptions: z.ZodArray<z.ZodObject<{
1927
+ name: z.ZodString;
1928
+ pushEndpoint: z.ZodOptional<z.ZodString>;
1929
+ ackDeadlineSeconds: z.ZodInt;
1930
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
1931
+ retainAckedMessages: z.ZodBoolean;
1932
+ enableMessageOrdering: z.ZodBoolean;
1933
+ enableExactlyOnceDelivery: z.ZodBoolean;
1934
+ messageFilter: z.ZodOptional<z.ZodString>;
1935
+ }, z.core.$strip>>;
1876
1936
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1877
1937
  typ: z.ZodLiteral<"proxy">;
1878
1938
  }, z.core.$strip>, z.ZodObject<{
@@ -2750,7 +2810,17 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
2750
2810
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2751
2811
  typ: z.ZodLiteral<"queue">;
2752
2812
  }, z.core.$strip>, z.ZodObject<{
2753
- foobar: z.ZodOptional<z.ZodString>;
2813
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
2814
+ subscriptions: z.ZodArray<z.ZodObject<{
2815
+ name: z.ZodString;
2816
+ pushEndpoint: z.ZodOptional<z.ZodString>;
2817
+ ackDeadlineSeconds: z.ZodInt;
2818
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
2819
+ retainAckedMessages: z.ZodBoolean;
2820
+ enableMessageOrdering: z.ZodBoolean;
2821
+ enableExactlyOnceDelivery: z.ZodBoolean;
2822
+ messageFilter: z.ZodOptional<z.ZodString>;
2823
+ }, z.core.$strip>>;
2754
2824
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2755
2825
  typ: z.ZodLiteral<"proxy">;
2756
2826
  }, z.core.$strip>, z.ZodObject<{
@@ -2984,7 +3054,17 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
2984
3054
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2985
3055
  typ: z.ZodLiteral<"queue">;
2986
3056
  }, z.core.$strip>, z.ZodObject<{
2987
- foobar: z.ZodOptional<z.ZodString>;
3057
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3058
+ subscriptions: z.ZodArray<z.ZodObject<{
3059
+ name: z.ZodString;
3060
+ pushEndpoint: z.ZodOptional<z.ZodString>;
3061
+ ackDeadlineSeconds: z.ZodInt;
3062
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3063
+ retainAckedMessages: z.ZodBoolean;
3064
+ enableMessageOrdering: z.ZodBoolean;
3065
+ enableExactlyOnceDelivery: z.ZodBoolean;
3066
+ messageFilter: z.ZodOptional<z.ZodString>;
3067
+ }, z.core.$strip>>;
2988
3068
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2989
3069
  typ: z.ZodLiteral<"proxy">;
2990
3070
  }, z.core.$strip>, z.ZodObject<{
@@ -3235,7 +3315,17 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
3235
3315
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3236
3316
  typ: z.ZodLiteral<"queue">;
3237
3317
  }, z.core.$strip>, z.ZodObject<{
3238
- foobar: z.ZodOptional<z.ZodString>;
3318
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3319
+ subscriptions: z.ZodArray<z.ZodObject<{
3320
+ name: z.ZodString;
3321
+ pushEndpoint: z.ZodOptional<z.ZodString>;
3322
+ ackDeadlineSeconds: z.ZodInt;
3323
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3324
+ retainAckedMessages: z.ZodBoolean;
3325
+ enableMessageOrdering: z.ZodBoolean;
3326
+ enableExactlyOnceDelivery: z.ZodBoolean;
3327
+ messageFilter: z.ZodOptional<z.ZodString>;
3328
+ }, z.core.$strip>>;
3239
3329
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3240
3330
  typ: z.ZodLiteral<"proxy">;
3241
3331
  }, z.core.$strip>, z.ZodObject<{
@@ -3467,7 +3557,17 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
3467
3557
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3468
3558
  typ: z.ZodLiteral<"queue">;
3469
3559
  }, z.core.$strip>, z.ZodObject<{
3470
- foobar: z.ZodOptional<z.ZodString>;
3560
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3561
+ subscriptions: z.ZodArray<z.ZodObject<{
3562
+ name: z.ZodString;
3563
+ pushEndpoint: z.ZodOptional<z.ZodString>;
3564
+ ackDeadlineSeconds: z.ZodInt;
3565
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3566
+ retainAckedMessages: z.ZodBoolean;
3567
+ enableMessageOrdering: z.ZodBoolean;
3568
+ enableExactlyOnceDelivery: z.ZodBoolean;
3569
+ messageFilter: z.ZodOptional<z.ZodString>;
3570
+ }, z.core.$strip>>;
3471
3571
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3472
3572
  typ: z.ZodLiteral<"proxy">;
3473
3573
  }, z.core.$strip>, z.ZodObject<{
@@ -3768,7 +3868,17 @@ export declare const zGetBlueprintM2mResponse: z.ZodObject<{
3768
3868
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3769
3869
  typ: z.ZodLiteral<"queue">;
3770
3870
  }, z.core.$strip>, z.ZodObject<{
3771
- foobar: z.ZodOptional<z.ZodString>;
3871
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3872
+ subscriptions: z.ZodArray<z.ZodObject<{
3873
+ name: z.ZodString;
3874
+ pushEndpoint: z.ZodOptional<z.ZodString>;
3875
+ ackDeadlineSeconds: z.ZodInt;
3876
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3877
+ retainAckedMessages: z.ZodBoolean;
3878
+ enableMessageOrdering: z.ZodBoolean;
3879
+ enableExactlyOnceDelivery: z.ZodBoolean;
3880
+ messageFilter: z.ZodOptional<z.ZodString>;
3881
+ }, z.core.$strip>>;
3772
3882
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3773
3883
  typ: z.ZodLiteral<"proxy">;
3774
3884
  }, z.core.$strip>, z.ZodObject<{
@@ -4663,7 +4773,17 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
4663
4773
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
4664
4774
  typ: z.ZodLiteral<"queue">;
4665
4775
  }, z.core.$strip>, z.ZodObject<{
4666
- foobar: z.ZodOptional<z.ZodString>;
4776
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
4777
+ subscriptions: z.ZodArray<z.ZodObject<{
4778
+ name: z.ZodString;
4779
+ pushEndpoint: z.ZodOptional<z.ZodString>;
4780
+ ackDeadlineSeconds: z.ZodInt;
4781
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
4782
+ retainAckedMessages: z.ZodBoolean;
4783
+ enableMessageOrdering: z.ZodBoolean;
4784
+ enableExactlyOnceDelivery: z.ZodBoolean;
4785
+ messageFilter: z.ZodOptional<z.ZodString>;
4786
+ }, z.core.$strip>>;
4667
4787
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
4668
4788
  typ: z.ZodLiteral<"proxy">;
4669
4789
  }, z.core.$strip>, z.ZodObject<{
@@ -5785,7 +5905,17 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
5785
5905
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
5786
5906
  typ: z.ZodLiteral<"queue">;
5787
5907
  }, z.core.$strip>, z.ZodObject<{
5788
- foobar: z.ZodOptional<z.ZodString>;
5908
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
5909
+ subscriptions: z.ZodArray<z.ZodObject<{
5910
+ name: z.ZodString;
5911
+ pushEndpoint: z.ZodOptional<z.ZodString>;
5912
+ ackDeadlineSeconds: z.ZodInt;
5913
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
5914
+ retainAckedMessages: z.ZodBoolean;
5915
+ enableMessageOrdering: z.ZodBoolean;
5916
+ enableExactlyOnceDelivery: z.ZodBoolean;
5917
+ messageFilter: z.ZodOptional<z.ZodString>;
5918
+ }, z.core.$strip>>;
5789
5919
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
5790
5920
  typ: z.ZodLiteral<"proxy">;
5791
5921
  }, z.core.$strip>, z.ZodObject<{
@@ -6019,7 +6149,17 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
6019
6149
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
6020
6150
  typ: z.ZodLiteral<"queue">;
6021
6151
  }, z.core.$strip>, z.ZodObject<{
6022
- foobar: z.ZodOptional<z.ZodString>;
6152
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
6153
+ subscriptions: z.ZodArray<z.ZodObject<{
6154
+ name: z.ZodString;
6155
+ pushEndpoint: z.ZodOptional<z.ZodString>;
6156
+ ackDeadlineSeconds: z.ZodInt;
6157
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
6158
+ retainAckedMessages: z.ZodBoolean;
6159
+ enableMessageOrdering: z.ZodBoolean;
6160
+ enableExactlyOnceDelivery: z.ZodBoolean;
6161
+ messageFilter: z.ZodOptional<z.ZodString>;
6162
+ }, z.core.$strip>>;
6023
6163
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
6024
6164
  typ: z.ZodLiteral<"proxy">;
6025
6165
  }, z.core.$strip>, z.ZodObject<{
@@ -674,8 +674,19 @@ export const zFunctionNodeProps = z.object({
674
674
  installationId: z.optional(z.string()),
675
675
  env: z.optional(z.array(z.string()))
676
676
  });
677
+ export const zQueueSubscriptionProps = z.object({
678
+ name: z.string().min(1),
679
+ pushEndpoint: z.optional(z.string()),
680
+ ackDeadlineSeconds: z.int().gte(10).lte(600),
681
+ messageRetentionDuration: z.optional(z.string()),
682
+ retainAckedMessages: z.boolean(),
683
+ enableMessageOrdering: z.boolean(),
684
+ enableExactlyOnceDelivery: z.boolean(),
685
+ messageFilter: z.optional(z.string())
686
+ });
677
687
  export const zQueueNodeProps = z.object({
678
- foobar: z.optional(z.string())
688
+ messageRetentionDuration: z.optional(z.string()),
689
+ subscriptions: z.array(zQueueSubscriptionProps)
679
690
  });
680
691
  export const zProxyNodeProps = z.object({
681
692
  subdomain: z.optional(z.string())