diff --git a/src/workerd/api/actor.h b/src/workerd/api/actor.h index 87161bc7504..d2a22fdf002 100644 --- a/src/workerd/api/actor.h +++ b/src/workerd/api/actor.h @@ -192,8 +192,8 @@ class DurableObjectNamespace: public jsg::Object { JSG_STRUCT(jurisdiction); - JSG_STRUCT_TS_DEFINE(type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"); - // Possible values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#restricting-objects-to-a-jurisdiction + JSG_STRUCT_TS_DEFINE(type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high" | "us"); + // Possible values from https://developers.cloudflare.com/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction JSG_STRUCT_TS_OVERRIDE({ jurisdiction?: DurableObjectJurisdiction; }); diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index 12a3bb07ef9..43ef2fbfe07 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -668,7 +668,7 @@ declare abstract class DurableObjectNamespace< jurisdiction: DurableObjectJurisdiction, ): DurableObjectNamespace; } -type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; +type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high" | "us"; interface DurableObjectNamespaceNewUniqueIdOptions { jurisdiction?: DurableObjectJurisdiction; } diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index 0cd8637c4fd..76c7f768068 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -670,7 +670,11 @@ export declare abstract class DurableObjectNamespace< jurisdiction: DurableObjectJurisdiction, ): DurableObjectNamespace; } -export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; +export type DurableObjectJurisdiction = + | "eu" + | "fedramp" + | "fedramp-high" + | "us"; export interface DurableObjectNamespaceNewUniqueIdOptions { jurisdiction?: DurableObjectJurisdiction; } diff --git a/types/generated-snapshot/latest/index.d.ts b/types/generated-snapshot/latest/index.d.ts index d9613477a2d..f5016738c3d 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -640,7 +640,7 @@ declare abstract class DurableObjectNamespace< jurisdiction: DurableObjectJurisdiction, ): DurableObjectNamespace; } -type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; +type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high" | "us"; interface DurableObjectNamespaceNewUniqueIdOptions { jurisdiction?: DurableObjectJurisdiction; } diff --git a/types/generated-snapshot/latest/index.ts b/types/generated-snapshot/latest/index.ts index bf6cfc06120..21c3281c792 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -642,7 +642,11 @@ export declare abstract class DurableObjectNamespace< jurisdiction: DurableObjectJurisdiction, ): DurableObjectNamespace; } -export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; +export type DurableObjectJurisdiction = + | "eu" + | "fedramp" + | "fedramp-high" + | "us"; export interface DurableObjectNamespaceNewUniqueIdOptions { jurisdiction?: DurableObjectJurisdiction; }