shoal-web-sdk 1.0.124 → 1.0.126

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.
@@ -659,6 +659,8 @@ export type Node = {
659
659
  } & CloudSqlNodeProps) | ({
660
660
  typ: 'queue';
661
661
  } & QueueNodeProps) | ({
662
+ typ: 'bucket';
663
+ } & BucketNodeProps) | ({
662
664
  typ: 'proxy';
663
665
  } & ProxyNodeProps) | ({
664
666
  typ: 'vm';
@@ -667,7 +669,7 @@ export type Node = {
667
669
  } & SchedulerNodeProps);
668
670
  };
669
671
  export type EdgeType = 'network' | 'route' | 'output';
670
- export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'neondb' | 'mongodb' | 'cloudsql' | 'queue' | 'proxy' | 'vm' | 'scheduler';
672
+ export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'neondb' | 'mongodb' | 'cloudsql' | 'queue' | 'bucket' | 'proxy' | 'vm' | 'scheduler';
671
673
  export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
672
674
  export type CommentNodeProps = {
673
675
  comment?: string;
@@ -880,6 +882,61 @@ export type QueueNodeProps = {
880
882
  saEmail?: string;
881
883
  subscriptions: Array<QueueSubscriptionProps>;
882
884
  };
885
+ /**
886
+ * Cloud Storage bucket location as listed at https://cloud.google.com/storage/docs/locations: a region, a predefined dual-region, or a multi-region.
887
+ */
888
+ export type BucketLocation = 'NORTHAMERICA-NORTHEAST1' | 'NORTHAMERICA-NORTHEAST2' | 'NORTHAMERICA-SOUTH1' | 'US-CENTRAL1' | 'US-EAST1' | 'US-EAST4' | 'US-EAST5' | 'US-SOUTH1' | 'US-WEST1' | 'US-WEST2' | 'US-WEST3' | 'US-WEST4' | 'SOUTHAMERICA-EAST1' | 'SOUTHAMERICA-WEST1' | 'EUROPE-CENTRAL2' | 'EUROPE-NORTH1' | 'EUROPE-NORTH2' | 'EUROPE-SOUTHWEST1' | 'EUROPE-WEST1' | 'EUROPE-WEST2' | 'EUROPE-WEST3' | 'EUROPE-WEST4' | 'EUROPE-WEST6' | 'EUROPE-WEST8' | 'EUROPE-WEST9' | 'EUROPE-WEST10' | 'EUROPE-WEST12' | 'ASIA-EAST1' | 'ASIA-EAST2' | 'ASIA-NORTHEAST1' | 'ASIA-NORTHEAST2' | 'ASIA-NORTHEAST3' | 'ASIA-SOUTH1' | 'ASIA-SOUTH2' | 'ASIA-SOUTHEAST1' | 'ASIA-SOUTHEAST2' | 'ASIA-SOUTHEAST3' | 'ME-CENTRAL1' | 'ME-CENTRAL2' | 'ME-WEST1' | 'AUSTRALIA-SOUTHEAST1' | 'AUSTRALIA-SOUTHEAST2' | 'AFRICA-SOUTH1' | 'ASIA1' | 'EUR4' | 'EUR5' | 'EUR7' | 'EUR8' | 'NAM4' | 'ASIA' | 'EU' | 'US';
889
+ export type BucketStorageClass = 'STANDARD' | 'NEARLINE' | 'COLDLINE' | 'ARCHIVE';
890
+ export type BucketCorsRule = {
891
+ /**
892
+ * Origins allowed to make cross-origin requests, e.g. "https://example.com". Use "*" for any origin.
893
+ */
894
+ origins: Array<string>;
895
+ /**
896
+ * HTTP methods allowed for cross-origin requests, e.g. GET, HEAD, PUT, POST, DELETE. Use "*" for any method.
897
+ */
898
+ methods: Array<string>;
899
+ /**
900
+ * Response headers the browser may expose to the requesting origin.
901
+ */
902
+ responseHeaders?: Array<string>;
903
+ /**
904
+ * How long the browser may cache the preflight response, in seconds.
905
+ */
906
+ maxAgeSeconds?: number;
907
+ };
908
+ export type BucketNodeProps = {
909
+ location: BucketLocation;
910
+ storageClass: BucketStorageClass;
911
+ /**
912
+ * When true, anyone on the internet can read objects in the bucket. When false, public access prevention is enforced and only connected workloads and holders of the node credential can reach it.
913
+ */
914
+ public?: boolean;
915
+ /**
916
+ * Keep noncurrent versions of objects when they are overwritten or deleted.
917
+ */
918
+ versioningEnabled?: boolean;
919
+ /**
920
+ * Delete every object in the bucket when the node is removed. Without it, a non-empty bucket cannot be deleted.
921
+ */
922
+ forceDestroy?: boolean;
923
+ /**
924
+ * How many days deleted or overwritten objects stay recoverable, and billed. 0 turns soft delete off; otherwise between 7 and 90. Trial accounts are always 0.
925
+ */
926
+ softDeleteRetentionDays?: number;
927
+ /**
928
+ * Cross-origin resource sharing rules, needed when a browser app reads or uploads objects directly.
929
+ */
930
+ cors?: Array<BucketCorsRule>;
931
+ /**
932
+ * The provisioned GCS bucket name. Written back by the deployment job; null until the bucket has been provisioned. Sending null leaves the stored value unchanged.
933
+ */
934
+ bucketName?: string;
935
+ /**
936
+ * Email of the service account scoped to this bucket, used to issue node credentials. Written back by the deployment job; null until provisioned. Sending null leaves the stored value unchanged.
937
+ */
938
+ saEmail?: string;
939
+ };
883
940
  export type QueueSubscriptionProps = {
884
941
  name: string;
885
942
  /**