Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/workerd/api/actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
2 changes: 1 addition & 1 deletion types/generated-snapshot/experimental/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ declare abstract class DurableObjectNamespace<
jurisdiction: DurableObjectJurisdiction,
): DurableObjectNamespace<T>;
}
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high" | "us";
interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction;
}
Expand Down
6 changes: 5 additions & 1 deletion types/generated-snapshot/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,11 @@ export declare abstract class DurableObjectNamespace<
jurisdiction: DurableObjectJurisdiction,
): DurableObjectNamespace<T>;
}
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
export type DurableObjectJurisdiction =
| "eu"
| "fedramp"
| "fedramp-high"
| "us";
export interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction;
}
Expand Down
2 changes: 1 addition & 1 deletion types/generated-snapshot/latest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ declare abstract class DurableObjectNamespace<
jurisdiction: DurableObjectJurisdiction,
): DurableObjectNamespace<T>;
}
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high" | "us";
interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction;
}
Expand Down
6 changes: 5 additions & 1 deletion types/generated-snapshot/latest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,11 @@ export declare abstract class DurableObjectNamespace<
jurisdiction: DurableObjectJurisdiction,
): DurableObjectNamespace<T>;
}
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
export type DurableObjectJurisdiction =
| "eu"
| "fedramp"
| "fedramp-high"
| "us";
export interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction;
}
Expand Down
Loading