@cloudflare/workers-types 4.20260417.1 → 4.20260420.1

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.
@@ -567,7 +567,6 @@ export interface CachePurgeError {
567
567
  }
568
568
  export interface CachePurgeResult {
569
569
  success: boolean;
570
- zoneTag: string;
571
570
  errors: CachePurgeError[];
572
571
  }
573
572
  export interface CachePurgeOptions {
@@ -11062,6 +11061,185 @@ export declare abstract class AiGateway {
11062
11061
  ): Promise<Response>;
11063
11062
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
11064
11063
  }
11064
+ // Copyright (c) 2022-2025 Cloudflare, Inc.
11065
+ // Licensed under the Apache 2.0 license found in the LICENSE file or at:
11066
+ // https://opensource.org/licenses/Apache-2.0
11067
+ /**
11068
+ * Artifacts — Git-compatible file storage on Cloudflare Workers.
11069
+ *
11070
+ * Provides programmatic access to create, manage, and fork repositories,
11071
+ * and to issue and revoke scoped access tokens.
11072
+ */
11073
+ /** Information about a repository. */
11074
+ export interface ArtifactsRepoInfo {
11075
+ /** Unique repository ID. */
11076
+ id: string;
11077
+ /** Repository name. */
11078
+ name: string;
11079
+ /** Repository description, or null if not set. */
11080
+ description: string | null;
11081
+ /** Default branch name (e.g. "main"). */
11082
+ defaultBranch: string;
11083
+ /** ISO 8601 creation timestamp. */
11084
+ createdAt: string;
11085
+ /** ISO 8601 last-updated timestamp. */
11086
+ updatedAt: string;
11087
+ /** ISO 8601 timestamp of the last push, or null if never pushed. */
11088
+ lastPushAt: string | null;
11089
+ /** Fork source (e.g. "github:owner/repo", "artifacts:namespace/repo"), or null if not a fork. */
11090
+ source: string | null;
11091
+ /** Whether the repository is read-only. */
11092
+ readOnly: boolean;
11093
+ /** HTTPS git remote URL. */
11094
+ remote: string;
11095
+ }
11096
+ /** Result of creating a repository — includes the initial access token. */
11097
+ export interface ArtifactsCreateRepoResult {
11098
+ /** Unique repository ID. */
11099
+ id: string;
11100
+ /** Repository name. */
11101
+ name: string;
11102
+ /** Repository description, or null if not set. */
11103
+ description: string | null;
11104
+ /** Default branch name. */
11105
+ defaultBranch: string;
11106
+ /** HTTPS git remote URL. */
11107
+ remote: string;
11108
+ /** Plaintext access token (only returned at creation time). */
11109
+ token: string;
11110
+ /** ISO 8601 token expiry timestamp. */
11111
+ tokenExpiresAt: string;
11112
+ }
11113
+ /** Paginated list of repositories. */
11114
+ export interface ArtifactsRepoListResult {
11115
+ /** Repositories in this page (without the `remote` field). */
11116
+ repos: Omit<ArtifactsRepoInfo, "remote">[];
11117
+ /** Total number of repositories in the namespace. */
11118
+ total: number;
11119
+ /** Cursor for the next page, if there are more results. */
11120
+ cursor?: string;
11121
+ }
11122
+ /** Result of creating an access token. */
11123
+ export interface ArtifactsCreateTokenResult {
11124
+ /** Unique token ID. */
11125
+ id: string;
11126
+ /** Plaintext token (only returned at creation time). */
11127
+ plaintext: string;
11128
+ /** Token scope: "read" or "write". */
11129
+ scope: "read" | "write";
11130
+ /** ISO 8601 token expiry timestamp. */
11131
+ expiresAt: string;
11132
+ }
11133
+ /** Token metadata (no plaintext). */
11134
+ export interface ArtifactsTokenInfo {
11135
+ /** Unique token ID. */
11136
+ id: string;
11137
+ /** Token scope: "read" or "write". */
11138
+ scope: "read" | "write";
11139
+ /** Token state: "active", "expired", or "revoked". */
11140
+ state: "active" | "expired" | "revoked";
11141
+ /** ISO 8601 creation timestamp. */
11142
+ createdAt: string;
11143
+ /** ISO 8601 expiry timestamp. */
11144
+ expiresAt: string;
11145
+ }
11146
+ /** Paginated list of tokens for a repository. */
11147
+ export interface ArtifactsTokenListResult {
11148
+ /** Tokens in this page. */
11149
+ tokens: ArtifactsTokenInfo[];
11150
+ /** Total number of tokens for the repository. */
11151
+ total: number;
11152
+ }
11153
+ /** Handle for a single repository. Returned by Artifacts.get(). */
11154
+ export interface ArtifactsRepo extends ArtifactsRepoInfo {
11155
+ /**
11156
+ * Create an access token for this repo.
11157
+ * @param scope Token scope: "write" (default) or "read".
11158
+ * @param ttl Time-to-live in seconds (default 86400, min 60, max 31536000).
11159
+ */
11160
+ createToken(
11161
+ scope?: "write" | "read",
11162
+ ttl?: number,
11163
+ ): Promise<ArtifactsCreateTokenResult>;
11164
+ /** List tokens for this repo (metadata only, no plaintext). */
11165
+ listTokens(): Promise<ArtifactsTokenListResult>;
11166
+ /**
11167
+ * Revoke a token by plaintext or ID.
11168
+ * @param tokenOrId Plaintext token or token ID.
11169
+ * @returns true if revoked, false if not found.
11170
+ */
11171
+ revokeToken(tokenOrId: string): Promise<boolean>;
11172
+ // ── Fork ──
11173
+ /**
11174
+ * Fork this repo to a new repo.
11175
+ * @param name Target repository name.
11176
+ * @param opts Optional: description, readOnly flag, defaultBranchOnly (default true).
11177
+ */
11178
+ fork(
11179
+ name: string,
11180
+ opts?: {
11181
+ description?: string;
11182
+ readOnly?: boolean;
11183
+ defaultBranchOnly?: boolean;
11184
+ },
11185
+ ): Promise<ArtifactsCreateRepoResult>;
11186
+ }
11187
+ /** Artifacts binding — namespace-level operations. */
11188
+ export interface Artifacts {
11189
+ /**
11190
+ * Create a new repository with an initial access token.
11191
+ * @param name Repository name (alphanumeric, dots, hyphens, underscores).
11192
+ * @param opts Optional: readOnly flag, description, default branch name.
11193
+ * @returns Repo metadata with initial token.
11194
+ */
11195
+ create(
11196
+ name: string,
11197
+ opts?: {
11198
+ readOnly?: boolean;
11199
+ description?: string;
11200
+ setDefaultBranch?: string;
11201
+ },
11202
+ ): Promise<ArtifactsCreateRepoResult>;
11203
+ /**
11204
+ * Get a handle to an existing repository.
11205
+ * @param name Repository name.
11206
+ * @returns Repo handle.
11207
+ */
11208
+ get(name: string): Promise<ArtifactsRepo>;
11209
+ /**
11210
+ * Import a repository from an external git remote.
11211
+ * @param params Source URL and optional branch/depth, plus target name and options.
11212
+ * @returns Repo metadata with initial token.
11213
+ */
11214
+ import(params: {
11215
+ source: {
11216
+ url: string;
11217
+ branch?: string;
11218
+ depth?: number;
11219
+ };
11220
+ target: {
11221
+ name: string;
11222
+ opts?: {
11223
+ description?: string;
11224
+ readOnly?: boolean;
11225
+ };
11226
+ };
11227
+ }): Promise<ArtifactsCreateRepoResult>;
11228
+ /**
11229
+ * List repositories with cursor-based pagination.
11230
+ * @param opts Optional: limit (1–200, default 50), cursor for next page.
11231
+ */
11232
+ list(opts?: {
11233
+ limit?: number;
11234
+ cursor?: string;
11235
+ }): Promise<ArtifactsRepoListResult>;
11236
+ /**
11237
+ * Delete a repository and all associated tokens.
11238
+ * @param name Repository name.
11239
+ * @returns true if deleted, false if not found.
11240
+ */
11241
+ delete(name: string): Promise<boolean>;
11242
+ }
11065
11243
  /**
11066
11244
  * @deprecated Use the standalone AI Search Workers binding instead.
11067
11245
  * See https://developers.cloudflare.com/ai-search/usage/workers-binding/
@@ -593,7 +593,6 @@ interface CachePurgeError {
593
593
  }
594
594
  interface CachePurgeResult {
595
595
  success: boolean;
596
- zoneTag: string;
597
596
  errors: CachePurgeError[];
598
597
  }
599
598
  interface CachePurgeOptions {
@@ -785,6 +784,12 @@ interface DurableObjectStorage {
785
784
  readonly primary?: DurableObjectStub;
786
785
  ensureReplicas(): void;
787
786
  disableReplicas(): void;
787
+ configureReadReplication(
788
+ options: DurableObjectReadReplicationOptions,
789
+ ): Promise<void>;
790
+ }
791
+ interface DurableObjectReadReplicationOptions {
792
+ mode: "auto" | "disabled";
788
793
  }
789
794
  interface DurableObjectListOptions {
790
795
  start?: string;
@@ -11737,6 +11742,185 @@ declare abstract class AiGateway {
11737
11742
  ): Promise<Response>;
11738
11743
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
11739
11744
  }
11745
+ // Copyright (c) 2022-2025 Cloudflare, Inc.
11746
+ // Licensed under the Apache 2.0 license found in the LICENSE file or at:
11747
+ // https://opensource.org/licenses/Apache-2.0
11748
+ /**
11749
+ * Artifacts — Git-compatible file storage on Cloudflare Workers.
11750
+ *
11751
+ * Provides programmatic access to create, manage, and fork repositories,
11752
+ * and to issue and revoke scoped access tokens.
11753
+ */
11754
+ /** Information about a repository. */
11755
+ interface ArtifactsRepoInfo {
11756
+ /** Unique repository ID. */
11757
+ id: string;
11758
+ /** Repository name. */
11759
+ name: string;
11760
+ /** Repository description, or null if not set. */
11761
+ description: string | null;
11762
+ /** Default branch name (e.g. "main"). */
11763
+ defaultBranch: string;
11764
+ /** ISO 8601 creation timestamp. */
11765
+ createdAt: string;
11766
+ /** ISO 8601 last-updated timestamp. */
11767
+ updatedAt: string;
11768
+ /** ISO 8601 timestamp of the last push, or null if never pushed. */
11769
+ lastPushAt: string | null;
11770
+ /** Fork source (e.g. "github:owner/repo", "artifacts:namespace/repo"), or null if not a fork. */
11771
+ source: string | null;
11772
+ /** Whether the repository is read-only. */
11773
+ readOnly: boolean;
11774
+ /** HTTPS git remote URL. */
11775
+ remote: string;
11776
+ }
11777
+ /** Result of creating a repository — includes the initial access token. */
11778
+ interface ArtifactsCreateRepoResult {
11779
+ /** Unique repository ID. */
11780
+ id: string;
11781
+ /** Repository name. */
11782
+ name: string;
11783
+ /** Repository description, or null if not set. */
11784
+ description: string | null;
11785
+ /** Default branch name. */
11786
+ defaultBranch: string;
11787
+ /** HTTPS git remote URL. */
11788
+ remote: string;
11789
+ /** Plaintext access token (only returned at creation time). */
11790
+ token: string;
11791
+ /** ISO 8601 token expiry timestamp. */
11792
+ tokenExpiresAt: string;
11793
+ }
11794
+ /** Paginated list of repositories. */
11795
+ interface ArtifactsRepoListResult {
11796
+ /** Repositories in this page (without the `remote` field). */
11797
+ repos: Omit<ArtifactsRepoInfo, "remote">[];
11798
+ /** Total number of repositories in the namespace. */
11799
+ total: number;
11800
+ /** Cursor for the next page, if there are more results. */
11801
+ cursor?: string;
11802
+ }
11803
+ /** Result of creating an access token. */
11804
+ interface ArtifactsCreateTokenResult {
11805
+ /** Unique token ID. */
11806
+ id: string;
11807
+ /** Plaintext token (only returned at creation time). */
11808
+ plaintext: string;
11809
+ /** Token scope: "read" or "write". */
11810
+ scope: "read" | "write";
11811
+ /** ISO 8601 token expiry timestamp. */
11812
+ expiresAt: string;
11813
+ }
11814
+ /** Token metadata (no plaintext). */
11815
+ interface ArtifactsTokenInfo {
11816
+ /** Unique token ID. */
11817
+ id: string;
11818
+ /** Token scope: "read" or "write". */
11819
+ scope: "read" | "write";
11820
+ /** Token state: "active", "expired", or "revoked". */
11821
+ state: "active" | "expired" | "revoked";
11822
+ /** ISO 8601 creation timestamp. */
11823
+ createdAt: string;
11824
+ /** ISO 8601 expiry timestamp. */
11825
+ expiresAt: string;
11826
+ }
11827
+ /** Paginated list of tokens for a repository. */
11828
+ interface ArtifactsTokenListResult {
11829
+ /** Tokens in this page. */
11830
+ tokens: ArtifactsTokenInfo[];
11831
+ /** Total number of tokens for the repository. */
11832
+ total: number;
11833
+ }
11834
+ /** Handle for a single repository. Returned by Artifacts.get(). */
11835
+ interface ArtifactsRepo extends ArtifactsRepoInfo {
11836
+ /**
11837
+ * Create an access token for this repo.
11838
+ * @param scope Token scope: "write" (default) or "read".
11839
+ * @param ttl Time-to-live in seconds (default 86400, min 60, max 31536000).
11840
+ */
11841
+ createToken(
11842
+ scope?: "write" | "read",
11843
+ ttl?: number,
11844
+ ): Promise<ArtifactsCreateTokenResult>;
11845
+ /** List tokens for this repo (metadata only, no plaintext). */
11846
+ listTokens(): Promise<ArtifactsTokenListResult>;
11847
+ /**
11848
+ * Revoke a token by plaintext or ID.
11849
+ * @param tokenOrId Plaintext token or token ID.
11850
+ * @returns true if revoked, false if not found.
11851
+ */
11852
+ revokeToken(tokenOrId: string): Promise<boolean>;
11853
+ // ── Fork ──
11854
+ /**
11855
+ * Fork this repo to a new repo.
11856
+ * @param name Target repository name.
11857
+ * @param opts Optional: description, readOnly flag, defaultBranchOnly (default true).
11858
+ */
11859
+ fork(
11860
+ name: string,
11861
+ opts?: {
11862
+ description?: string;
11863
+ readOnly?: boolean;
11864
+ defaultBranchOnly?: boolean;
11865
+ },
11866
+ ): Promise<ArtifactsCreateRepoResult>;
11867
+ }
11868
+ /** Artifacts binding — namespace-level operations. */
11869
+ interface Artifacts {
11870
+ /**
11871
+ * Create a new repository with an initial access token.
11872
+ * @param name Repository name (alphanumeric, dots, hyphens, underscores).
11873
+ * @param opts Optional: readOnly flag, description, default branch name.
11874
+ * @returns Repo metadata with initial token.
11875
+ */
11876
+ create(
11877
+ name: string,
11878
+ opts?: {
11879
+ readOnly?: boolean;
11880
+ description?: string;
11881
+ setDefaultBranch?: string;
11882
+ },
11883
+ ): Promise<ArtifactsCreateRepoResult>;
11884
+ /**
11885
+ * Get a handle to an existing repository.
11886
+ * @param name Repository name.
11887
+ * @returns Repo handle.
11888
+ */
11889
+ get(name: string): Promise<ArtifactsRepo>;
11890
+ /**
11891
+ * Import a repository from an external git remote.
11892
+ * @param params Source URL and optional branch/depth, plus target name and options.
11893
+ * @returns Repo metadata with initial token.
11894
+ */
11895
+ import(params: {
11896
+ source: {
11897
+ url: string;
11898
+ branch?: string;
11899
+ depth?: number;
11900
+ };
11901
+ target: {
11902
+ name: string;
11903
+ opts?: {
11904
+ description?: string;
11905
+ readOnly?: boolean;
11906
+ };
11907
+ };
11908
+ }): Promise<ArtifactsCreateRepoResult>;
11909
+ /**
11910
+ * List repositories with cursor-based pagination.
11911
+ * @param opts Optional: limit (1–200, default 50), cursor for next page.
11912
+ */
11913
+ list(opts?: {
11914
+ limit?: number;
11915
+ cursor?: string;
11916
+ }): Promise<ArtifactsRepoListResult>;
11917
+ /**
11918
+ * Delete a repository and all associated tokens.
11919
+ * @param name Repository name.
11920
+ * @returns true if deleted, false if not found.
11921
+ */
11922
+ delete(name: string): Promise<boolean>;
11923
+ }
11740
11924
  /**
11741
11925
  * @deprecated Use the standalone AI Search Workers binding instead.
11742
11926
  * See https://developers.cloudflare.com/ai-search/usage/workers-binding/
@@ -595,7 +595,6 @@ export interface CachePurgeError {
595
595
  }
596
596
  export interface CachePurgeResult {
597
597
  success: boolean;
598
- zoneTag: string;
599
598
  errors: CachePurgeError[];
600
599
  }
601
600
  export interface CachePurgeOptions {
@@ -787,6 +786,12 @@ export interface DurableObjectStorage {
787
786
  readonly primary?: DurableObjectStub;
788
787
  ensureReplicas(): void;
789
788
  disableReplicas(): void;
789
+ configureReadReplication(
790
+ options: DurableObjectReadReplicationOptions,
791
+ ): Promise<void>;
792
+ }
793
+ export interface DurableObjectReadReplicationOptions {
794
+ mode: "auto" | "disabled";
790
795
  }
791
796
  export interface DurableObjectListOptions {
792
797
  start?: string;
@@ -11749,6 +11754,185 @@ export declare abstract class AiGateway {
11749
11754
  ): Promise<Response>;
11750
11755
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
11751
11756
  }
11757
+ // Copyright (c) 2022-2025 Cloudflare, Inc.
11758
+ // Licensed under the Apache 2.0 license found in the LICENSE file or at:
11759
+ // https://opensource.org/licenses/Apache-2.0
11760
+ /**
11761
+ * Artifacts — Git-compatible file storage on Cloudflare Workers.
11762
+ *
11763
+ * Provides programmatic access to create, manage, and fork repositories,
11764
+ * and to issue and revoke scoped access tokens.
11765
+ */
11766
+ /** Information about a repository. */
11767
+ export interface ArtifactsRepoInfo {
11768
+ /** Unique repository ID. */
11769
+ id: string;
11770
+ /** Repository name. */
11771
+ name: string;
11772
+ /** Repository description, or null if not set. */
11773
+ description: string | null;
11774
+ /** Default branch name (e.g. "main"). */
11775
+ defaultBranch: string;
11776
+ /** ISO 8601 creation timestamp. */
11777
+ createdAt: string;
11778
+ /** ISO 8601 last-updated timestamp. */
11779
+ updatedAt: string;
11780
+ /** ISO 8601 timestamp of the last push, or null if never pushed. */
11781
+ lastPushAt: string | null;
11782
+ /** Fork source (e.g. "github:owner/repo", "artifacts:namespace/repo"), or null if not a fork. */
11783
+ source: string | null;
11784
+ /** Whether the repository is read-only. */
11785
+ readOnly: boolean;
11786
+ /** HTTPS git remote URL. */
11787
+ remote: string;
11788
+ }
11789
+ /** Result of creating a repository — includes the initial access token. */
11790
+ export interface ArtifactsCreateRepoResult {
11791
+ /** Unique repository ID. */
11792
+ id: string;
11793
+ /** Repository name. */
11794
+ name: string;
11795
+ /** Repository description, or null if not set. */
11796
+ description: string | null;
11797
+ /** Default branch name. */
11798
+ defaultBranch: string;
11799
+ /** HTTPS git remote URL. */
11800
+ remote: string;
11801
+ /** Plaintext access token (only returned at creation time). */
11802
+ token: string;
11803
+ /** ISO 8601 token expiry timestamp. */
11804
+ tokenExpiresAt: string;
11805
+ }
11806
+ /** Paginated list of repositories. */
11807
+ export interface ArtifactsRepoListResult {
11808
+ /** Repositories in this page (without the `remote` field). */
11809
+ repos: Omit<ArtifactsRepoInfo, "remote">[];
11810
+ /** Total number of repositories in the namespace. */
11811
+ total: number;
11812
+ /** Cursor for the next page, if there are more results. */
11813
+ cursor?: string;
11814
+ }
11815
+ /** Result of creating an access token. */
11816
+ export interface ArtifactsCreateTokenResult {
11817
+ /** Unique token ID. */
11818
+ id: string;
11819
+ /** Plaintext token (only returned at creation time). */
11820
+ plaintext: string;
11821
+ /** Token scope: "read" or "write". */
11822
+ scope: "read" | "write";
11823
+ /** ISO 8601 token expiry timestamp. */
11824
+ expiresAt: string;
11825
+ }
11826
+ /** Token metadata (no plaintext). */
11827
+ export interface ArtifactsTokenInfo {
11828
+ /** Unique token ID. */
11829
+ id: string;
11830
+ /** Token scope: "read" or "write". */
11831
+ scope: "read" | "write";
11832
+ /** Token state: "active", "expired", or "revoked". */
11833
+ state: "active" | "expired" | "revoked";
11834
+ /** ISO 8601 creation timestamp. */
11835
+ createdAt: string;
11836
+ /** ISO 8601 expiry timestamp. */
11837
+ expiresAt: string;
11838
+ }
11839
+ /** Paginated list of tokens for a repository. */
11840
+ export interface ArtifactsTokenListResult {
11841
+ /** Tokens in this page. */
11842
+ tokens: ArtifactsTokenInfo[];
11843
+ /** Total number of tokens for the repository. */
11844
+ total: number;
11845
+ }
11846
+ /** Handle for a single repository. Returned by Artifacts.get(). */
11847
+ export interface ArtifactsRepo extends ArtifactsRepoInfo {
11848
+ /**
11849
+ * Create an access token for this repo.
11850
+ * @param scope Token scope: "write" (default) or "read".
11851
+ * @param ttl Time-to-live in seconds (default 86400, min 60, max 31536000).
11852
+ */
11853
+ createToken(
11854
+ scope?: "write" | "read",
11855
+ ttl?: number,
11856
+ ): Promise<ArtifactsCreateTokenResult>;
11857
+ /** List tokens for this repo (metadata only, no plaintext). */
11858
+ listTokens(): Promise<ArtifactsTokenListResult>;
11859
+ /**
11860
+ * Revoke a token by plaintext or ID.
11861
+ * @param tokenOrId Plaintext token or token ID.
11862
+ * @returns true if revoked, false if not found.
11863
+ */
11864
+ revokeToken(tokenOrId: string): Promise<boolean>;
11865
+ // ── Fork ──
11866
+ /**
11867
+ * Fork this repo to a new repo.
11868
+ * @param name Target repository name.
11869
+ * @param opts Optional: description, readOnly flag, defaultBranchOnly (default true).
11870
+ */
11871
+ fork(
11872
+ name: string,
11873
+ opts?: {
11874
+ description?: string;
11875
+ readOnly?: boolean;
11876
+ defaultBranchOnly?: boolean;
11877
+ },
11878
+ ): Promise<ArtifactsCreateRepoResult>;
11879
+ }
11880
+ /** Artifacts binding — namespace-level operations. */
11881
+ export interface Artifacts {
11882
+ /**
11883
+ * Create a new repository with an initial access token.
11884
+ * @param name Repository name (alphanumeric, dots, hyphens, underscores).
11885
+ * @param opts Optional: readOnly flag, description, default branch name.
11886
+ * @returns Repo metadata with initial token.
11887
+ */
11888
+ create(
11889
+ name: string,
11890
+ opts?: {
11891
+ readOnly?: boolean;
11892
+ description?: string;
11893
+ setDefaultBranch?: string;
11894
+ },
11895
+ ): Promise<ArtifactsCreateRepoResult>;
11896
+ /**
11897
+ * Get a handle to an existing repository.
11898
+ * @param name Repository name.
11899
+ * @returns Repo handle.
11900
+ */
11901
+ get(name: string): Promise<ArtifactsRepo>;
11902
+ /**
11903
+ * Import a repository from an external git remote.
11904
+ * @param params Source URL and optional branch/depth, plus target name and options.
11905
+ * @returns Repo metadata with initial token.
11906
+ */
11907
+ import(params: {
11908
+ source: {
11909
+ url: string;
11910
+ branch?: string;
11911
+ depth?: number;
11912
+ };
11913
+ target: {
11914
+ name: string;
11915
+ opts?: {
11916
+ description?: string;
11917
+ readOnly?: boolean;
11918
+ };
11919
+ };
11920
+ }): Promise<ArtifactsCreateRepoResult>;
11921
+ /**
11922
+ * List repositories with cursor-based pagination.
11923
+ * @param opts Optional: limit (1–200, default 50), cursor for next page.
11924
+ */
11925
+ list(opts?: {
11926
+ limit?: number;
11927
+ cursor?: string;
11928
+ }): Promise<ArtifactsRepoListResult>;
11929
+ /**
11930
+ * Delete a repository and all associated tokens.
11931
+ * @param name Repository name.
11932
+ * @returns true if deleted, false if not found.
11933
+ */
11934
+ delete(name: string): Promise<boolean>;
11935
+ }
11752
11936
  /**
11753
11937
  * @deprecated Use the standalone AI Search Workers binding instead.
11754
11938
  * See https://developers.cloudflare.com/ai-search/usage/workers-binding/