@tarkahq/sdk 0.0.0-stage → 0.3.0

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.
Files changed (130) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +69 -0
  3. package/README.md +700 -2
  4. package/api-source.json +38 -0
  5. package/dist/cjs/client.d.ts +114 -0
  6. package/dist/cjs/client.js +174 -0
  7. package/dist/cjs/errors.d.ts +27 -0
  8. package/dist/cjs/errors.js +78 -0
  9. package/dist/cjs/generated/google/api/annotations.d.ts +1 -0
  10. package/dist/cjs/generated/google/api/annotations.js +10 -0
  11. package/dist/cjs/generated/google/api/http.d.ts +395 -0
  12. package/dist/cjs/generated/google/api/http.js +421 -0
  13. package/dist/cjs/generated/google/protobuf/descriptor.d.ts +873 -0
  14. package/dist/cjs/generated/google/protobuf/descriptor.js +3992 -0
  15. package/dist/cjs/generated/google/protobuf/empty.d.ts +35 -0
  16. package/dist/cjs/generated/google/protobuf/empty.js +58 -0
  17. package/dist/cjs/generated/google/protobuf/struct.d.ts +127 -0
  18. package/dist/cjs/generated/google/protobuf/struct.js +529 -0
  19. package/dist/cjs/generated/google/protobuf/timestamp.d.ts +128 -0
  20. package/dist/cjs/generated/google/protobuf/timestamp.js +95 -0
  21. package/dist/cjs/generated/protoc-gen-openapiv2/options/annotations.d.ts +1 -0
  22. package/dist/cjs/generated/protoc-gen-openapiv2/options/annotations.js +10 -0
  23. package/dist/cjs/generated/protoc-gen-openapiv2/options/openapiv2.d.ts +983 -0
  24. package/dist/cjs/generated/protoc-gen-openapiv2/options/openapiv2.js +4874 -0
  25. package/dist/cjs/generated/tarka/access/v1/access.d.ts +322 -0
  26. package/dist/cjs/generated/tarka/access/v1/access.js +2979 -0
  27. package/dist/cjs/generated/tarka/channels/v1/channels.d.ts +370 -0
  28. package/dist/cjs/generated/tarka/channels/v1/channels.js +3603 -0
  29. package/dist/cjs/generated/tarka/gateway/v1/gateway.d.ts +804 -0
  30. package/dist/cjs/generated/tarka/gateway/v1/gateway.js +8081 -0
  31. package/dist/cjs/generated/tarka/iam/v1/iam.d.ts +1291 -0
  32. package/dist/cjs/generated/tarka/iam/v1/iam.js +13207 -0
  33. package/dist/cjs/generated/tarka/inference/v1/inference.d.ts +699 -0
  34. package/dist/cjs/generated/tarka/inference/v1/inference.js +7058 -0
  35. package/dist/cjs/generated/tarka/provisioning/v1/agent_secrets.d.ts +70 -0
  36. package/dist/cjs/generated/tarka/provisioning/v1/agent_secrets.js +603 -0
  37. package/dist/cjs/generated/tarka/provisioning/v1/billing_quote.d.ts +171 -0
  38. package/dist/cjs/generated/tarka/provisioning/v1/billing_quote.js +1588 -0
  39. package/dist/cjs/generated/tarka/provisioning/v1/job.d.ts +168 -0
  40. package/dist/cjs/generated/tarka/provisioning/v1/job.js +1505 -0
  41. package/dist/cjs/generated/tarka/provisioning/v1/provisioning.d.ts +2644 -0
  42. package/dist/cjs/generated/tarka/provisioning/v1/provisioning.js +19501 -0
  43. package/dist/cjs/generated/tarka/provisioning/v1/registry_credentials.d.ts +89 -0
  44. package/dist/cjs/generated/tarka/provisioning/v1/registry_credentials.js +856 -0
  45. package/dist/cjs/generated/tarka/provisioning/v1/sandbox.d.ts +431 -0
  46. package/dist/cjs/generated/tarka/provisioning/v1/sandbox.js +3203 -0
  47. package/dist/cjs/generated/tarka/provisioning/v1/source_builds.d.ts +291 -0
  48. package/dist/cjs/generated/tarka/provisioning/v1/source_builds.js +3920 -0
  49. package/dist/cjs/grpc.d.ts +12 -0
  50. package/dist/cjs/grpc.js +55 -0
  51. package/dist/cjs/index.d.ts +6 -0
  52. package/dist/cjs/index.js +21 -0
  53. package/dist/cjs/package.json +1 -0
  54. package/dist/cjs/resources/inference.d.ts +293 -0
  55. package/dist/cjs/resources/inference.js +451 -0
  56. package/dist/cjs/resources/provisioning.d.ts +389 -0
  57. package/dist/cjs/resources/provisioning.js +552 -0
  58. package/dist/cjs/resources/sandboxes.d.ts +360 -0
  59. package/dist/cjs/resources/sandboxes.js +732 -0
  60. package/dist/cjs/rpc-types.d.ts +36 -0
  61. package/dist/cjs/rpc-types.js +29 -0
  62. package/dist/cjs/runtime.d.ts +99 -0
  63. package/dist/cjs/runtime.js +473 -0
  64. package/dist/cjs/transport.d.ts +60 -0
  65. package/dist/cjs/transport.js +114 -0
  66. package/dist/cjs/types.d.ts +309 -0
  67. package/dist/cjs/types.js +2 -0
  68. package/dist/esm/client.d.ts +114 -0
  69. package/dist/esm/client.js +169 -0
  70. package/dist/esm/errors.d.ts +27 -0
  71. package/dist/esm/errors.js +71 -0
  72. package/dist/esm/generated/google/api/annotations.d.ts +1 -0
  73. package/dist/esm/generated/google/api/annotations.js +7 -0
  74. package/dist/esm/generated/google/api/http.d.ts +395 -0
  75. package/dist/esm/generated/google/api/http.js +418 -0
  76. package/dist/esm/generated/google/protobuf/descriptor.d.ts +873 -0
  77. package/dist/esm/generated/google/protobuf/descriptor.js +3977 -0
  78. package/dist/esm/generated/google/protobuf/empty.d.ts +35 -0
  79. package/dist/esm/generated/google/protobuf/empty.js +55 -0
  80. package/dist/esm/generated/google/protobuf/struct.d.ts +127 -0
  81. package/dist/esm/generated/google/protobuf/struct.js +524 -0
  82. package/dist/esm/generated/google/protobuf/timestamp.d.ts +128 -0
  83. package/dist/esm/generated/google/protobuf/timestamp.js +92 -0
  84. package/dist/esm/generated/protoc-gen-openapiv2/options/annotations.d.ts +1 -0
  85. package/dist/esm/generated/protoc-gen-openapiv2/options/annotations.js +7 -0
  86. package/dist/esm/generated/protoc-gen-openapiv2/options/openapiv2.d.ts +983 -0
  87. package/dist/esm/generated/protoc-gen-openapiv2/options/openapiv2.js +4859 -0
  88. package/dist/esm/generated/tarka/access/v1/access.d.ts +322 -0
  89. package/dist/esm/generated/tarka/access/v1/access.js +2976 -0
  90. package/dist/esm/generated/tarka/channels/v1/channels.d.ts +370 -0
  91. package/dist/esm/generated/tarka/channels/v1/channels.js +3600 -0
  92. package/dist/esm/generated/tarka/gateway/v1/gateway.d.ts +804 -0
  93. package/dist/esm/generated/tarka/gateway/v1/gateway.js +8077 -0
  94. package/dist/esm/generated/tarka/iam/v1/iam.d.ts +1291 -0
  95. package/dist/esm/generated/tarka/iam/v1/iam.js +13203 -0
  96. package/dist/esm/generated/tarka/inference/v1/inference.d.ts +699 -0
  97. package/dist/esm/generated/tarka/inference/v1/inference.js +7055 -0
  98. package/dist/esm/generated/tarka/provisioning/v1/agent_secrets.d.ts +70 -0
  99. package/dist/esm/generated/tarka/provisioning/v1/agent_secrets.js +600 -0
  100. package/dist/esm/generated/tarka/provisioning/v1/billing_quote.d.ts +171 -0
  101. package/dist/esm/generated/tarka/provisioning/v1/billing_quote.js +1585 -0
  102. package/dist/esm/generated/tarka/provisioning/v1/job.d.ts +168 -0
  103. package/dist/esm/generated/tarka/provisioning/v1/job.js +1500 -0
  104. package/dist/esm/generated/tarka/provisioning/v1/provisioning.d.ts +2644 -0
  105. package/dist/esm/generated/tarka/provisioning/v1/provisioning.js +19496 -0
  106. package/dist/esm/generated/tarka/provisioning/v1/registry_credentials.d.ts +89 -0
  107. package/dist/esm/generated/tarka/provisioning/v1/registry_credentials.js +853 -0
  108. package/dist/esm/generated/tarka/provisioning/v1/sandbox.d.ts +431 -0
  109. package/dist/esm/generated/tarka/provisioning/v1/sandbox.js +3192 -0
  110. package/dist/esm/generated/tarka/provisioning/v1/source_builds.d.ts +291 -0
  111. package/dist/esm/generated/tarka/provisioning/v1/source_builds.js +3917 -0
  112. package/dist/esm/grpc.d.ts +12 -0
  113. package/dist/esm/grpc.js +11 -0
  114. package/dist/esm/index.d.ts +6 -0
  115. package/dist/esm/index.js +4 -0
  116. package/dist/esm/resources/inference.d.ts +293 -0
  117. package/dist/esm/resources/inference.js +437 -0
  118. package/dist/esm/resources/provisioning.d.ts +389 -0
  119. package/dist/esm/resources/provisioning.js +531 -0
  120. package/dist/esm/resources/sandboxes.d.ts +360 -0
  121. package/dist/esm/resources/sandboxes.js +718 -0
  122. package/dist/esm/rpc-types.d.ts +36 -0
  123. package/dist/esm/rpc-types.js +26 -0
  124. package/dist/esm/runtime.d.ts +99 -0
  125. package/dist/esm/runtime.js +466 -0
  126. package/dist/esm/transport.d.ts +60 -0
  127. package/dist/esm/transport.js +110 -0
  128. package/dist/esm/types.d.ts +309 -0
  129. package/dist/esm/types.js +1 -0
  130. package/package.json +155 -4
@@ -0,0 +1,389 @@
1
+ import type { ProvisioningRpc, SandboxRpc } from "../rpc-types.js";
2
+ import { OrganizationSandboxes } from "./sandboxes.js";
3
+ import type { RequestOptions, User, Organization, OrganizationInput, OrganizationMember, ProductAccessRequest, ProductAccessInput, ProductAccessFilter, ApiKey, CreatedApiKey, ApiKeyInput, QuotaPolicy, QuotaPolicyInput, UsageEvent, UsageSummary, ComputeResource, InferenceServiceInput, AgentHostInput, JobInput, StorageBucket, StorageCredential, CreatedStorageCredential, GitRepository, GitRepositoryInput, GitAccess } from "../types.js";
4
+ /** The authenticated account and its initial organization. Access through `client.user`. */
5
+ export declare class Users {
6
+ #private;
7
+ constructor(rpc: ProvisioningRpc);
8
+ /**
9
+ * Retrieve the current user, organization memberships, and default organization.
10
+ *
11
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
12
+ */
13
+ get(options?: RequestOptions): Promise<User>;
14
+ /**
15
+ * Initialize the authenticated account and its first organization.
16
+ *
17
+ * @param input - Optional organization display name; when omitted, the server derives a name.
18
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
19
+ */
20
+ bootstrap(input?: {
21
+ orgName?: string;
22
+ }, options?: RequestOptions): Promise<User>;
23
+ }
24
+ /** Organizations accessible to the authenticated account. Access through `client.organizations`. */
25
+ export declare class Organizations {
26
+ #private;
27
+ constructor(rpc: ProvisioningRpc);
28
+ /**
29
+ * Return the current user's organizations as an array.
30
+ *
31
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
32
+ */
33
+ list(options?: RequestOptions): Promise<Organization[]>;
34
+ /**
35
+ * Retrieve an organization record.
36
+ *
37
+ * @param id - Organization identifier.
38
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
39
+ */
40
+ get(id: string, options?: RequestOptions): Promise<Organization>;
41
+ /**
42
+ * Create an organization with the authenticated caller as its owner.
43
+ *
44
+ * @param input - Display name and optional globally unique slug. The server allocates an omitted slug.
45
+ * @returns The organization record; use `client.org(result.id)` to access its resources.
46
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
47
+ */
48
+ create(input: OrganizationInput, options?: RequestOptions): Promise<Organization>;
49
+ }
50
+ /** Memberships of the bound organization. Access through `client.org(orgId).members`. */
51
+ export declare class Members {
52
+ #private;
53
+ private readonly orgId;
54
+ constructor(rpc: ProvisioningRpc, orgId: string);
55
+ /**
56
+ * Return the organization's members as an array.
57
+ *
58
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
59
+ */
60
+ list(options?: RequestOptions): Promise<OrganizationMember[]>;
61
+ }
62
+ /** Product access requests for the bound organization. Access through `org.accessRequests`. */
63
+ export declare class AccessRequests {
64
+ #private;
65
+ private readonly orgId;
66
+ constructor(rpc: ProvisioningRpc, orgId: string);
67
+ /**
68
+ * List recent product access requests, newest first.
69
+ *
70
+ * @param filter - Optional product and result limit; the server defaults to 25 and caps the limit at 100.
71
+ * @returns An array from one server response; the SDK does not fetch additional pages.
72
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
73
+ */
74
+ list(filter?: ProductAccessFilter, options?: RequestOptions): Promise<ProductAccessRequest[]>;
75
+ /**
76
+ * Submit a product access request for this organization.
77
+ *
78
+ * @param input - Product, use case, and optional contact/company details. Omitted contact email uses the authenticated account.
79
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
80
+ */
81
+ create(input: ProductAccessInput, options?: RequestOptions): Promise<ProductAccessRequest>;
82
+ }
83
+ /** API keys for the bound organization. Access through `org.apiKeys`. */
84
+ export declare class ApiKeys {
85
+ #private;
86
+ private readonly orgId;
87
+ constructor(rpc: ProvisioningRpc, orgId: string);
88
+ /**
89
+ * List API key metadata. Previously issued plaintext secrets are not returned.
90
+ *
91
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
92
+ */
93
+ list(options?: RequestOptions): Promise<ApiKey[]>;
94
+ /**
95
+ * Create an API key and return its metadata with a one-time `secret`.
96
+ *
97
+ * @param input - Optional label, product scopes, and allowed model aliases. Omitted scopes use the server's inference default.
98
+ * @returns The key record plus `secret`; store the secret at creation because it cannot be retrieved later.
99
+ * @example
100
+ * const key = await org.apiKeys.create({ label: "worker", scopes: ["inference"] });
101
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
102
+ */
103
+ create(input?: ApiKeyInput, options?: RequestOptions): Promise<CreatedApiKey>;
104
+ /**
105
+ * Revoke an API key and return its updated metadata.
106
+ *
107
+ * @param id - API key identifier, not its secret.
108
+ * @param input - Optional human-readable revocation reason.
109
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
110
+ */
111
+ revoke(id: string, input?: {
112
+ reason?: string;
113
+ }, options?: RequestOptions): Promise<ApiKey>;
114
+ }
115
+ /** Inference limits and model policy for the bound organization. Access through `org.quotas`. */
116
+ export declare class Quotas {
117
+ #private;
118
+ private readonly orgId;
119
+ constructor(rpc: ProvisioningRpc, orgId: string);
120
+ /**
121
+ * Retrieve the organization's effective inference quota policy.
122
+ *
123
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
124
+ */
125
+ get(options?: RequestOptions): Promise<QuotaPolicy>;
126
+ /**
127
+ * Replace the organization's quota policy.
128
+ *
129
+ * Omitted optional limits become unlimited. This is a replacement, so include all limits you intend to retain.
130
+ * @param input - Complete desired policy. Supply `allowedModelAliases` when `allowAllModels` is false; 64-bit budgets use bigint.
131
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
132
+ */
133
+ update(input: QuotaPolicyInput, options?: RequestOptions): Promise<QuotaPolicy>;
134
+ }
135
+ /** Inference usage for the bound organization. Access through `org.usage`. */
136
+ export declare class Usage {
137
+ #private;
138
+ private readonly orgId;
139
+ constructor(rpc: ProvisioningRpc, orgId: string);
140
+ /**
141
+ * List usage events as an array.
142
+ *
143
+ * @param filter - Optional result limit; omitted values use the server default.
144
+ * @returns One server response without automatic pagination; 64-bit counters and IDs remain bigint.
145
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
146
+ */
147
+ list(filter?: {
148
+ limit?: number;
149
+ }, options?: RequestOptions): Promise<UsageEvent[]>;
150
+ /**
151
+ * Retrieve the organization's aggregate usage counters.
152
+ *
153
+ * @returns A usage summary with lossless bigint counters.
154
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
155
+ */
156
+ summary(options?: RequestOptions): Promise<UsageSummary>;
157
+ }
158
+ /** Observed and desired state of managed compute. Access through `org.compute.resources`. */
159
+ export declare class ComputeResources {
160
+ #private;
161
+ private readonly orgId;
162
+ constructor(rpc: ProvisioningRpc, orgId: string);
163
+ /**
164
+ * List provisioned compute resources as an array.
165
+ *
166
+ * @param filter - Optional resource type filter.
167
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
168
+ */
169
+ list(filter?: {
170
+ resourceType?: string;
171
+ }, options?: RequestOptions): Promise<ComputeResource[]>;
172
+ /**
173
+ * Retrieve the current record for a provisioned compute resource.
174
+ *
175
+ * @param id - Resource identifier returned by a compute creation method.
176
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
177
+ */
178
+ get(id: string, options?: RequestOptions): Promise<ComputeResource>;
179
+ }
180
+ /** Managed inference service creation. Access through `org.compute.inferenceServices`. */
181
+ export declare class InferenceServices {
182
+ #private;
183
+ private readonly orgId;
184
+ constructor(rpc: ProvisioningRpc, orgId: string);
185
+ /**
186
+ * Request a managed inference service and return its resource record.
187
+ *
188
+ * @param input - DNS-label name, model alias, and optional capacity/specification fields.
189
+ * @returns Desired and observed resource state. Creation does not poll for readiness; inspect `org.compute.resources.get(id)`.
190
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
191
+ */
192
+ create(input: InferenceServiceInput, options?: RequestOptions): Promise<ComputeResource>;
193
+ }
194
+ /** Managed agent host creation. Access through `org.compute.agentHosts`. */
195
+ export declare class AgentHosts {
196
+ #private;
197
+ private readonly orgId;
198
+ constructor(rpc: ProvisioningRpc, orgId: string);
199
+ /**
200
+ * Request an agent host and return its resource record.
201
+ *
202
+ * @param input - DNS-label name, container image, and optional service/capacity settings. Extension `spec` must not contain secrets.
203
+ * @returns Desired and observed resource state, without readiness polling.
204
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
205
+ */
206
+ create(input: AgentHostInput, options?: RequestOptions): Promise<ComputeResource>;
207
+ }
208
+ /** Finite-duration container jobs. Access through `org.compute.jobs`. */
209
+ export declare class Jobs {
210
+ #private;
211
+ private readonly orgId;
212
+ constructor(rpc: ProvisioningRpc, orgId: string);
213
+ /**
214
+ * Request a container job and return its resource record.
215
+ *
216
+ * @param input - DNS-label name, container image, optional argv `command`, and server execution limit in `timeoutSeconds`.
217
+ * @returns Desired and observed resource state, without waiting for the job to finish. Commands are passed without shell expansion.
218
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
219
+ */
220
+ create(input: JobInput, options?: RequestOptions): Promise<ComputeResource>;
221
+ }
222
+ /** Managed compute for the bound organization. Access through `org.compute`. */
223
+ export declare class Compute {
224
+ /** List and inspect all provisioned compute resource types. */
225
+ readonly resources: ComputeResources;
226
+ /** Create managed inference services. */
227
+ readonly inferenceServices: InferenceServices;
228
+ /** Create managed agent hosts. */
229
+ readonly agentHosts: AgentHosts;
230
+ /** Create container jobs. */
231
+ readonly jobs: Jobs;
232
+ constructor(rpc: ProvisioningRpc, orgId: string);
233
+ }
234
+ /** Storage buckets for the bound organization. Access through `org.storage.buckets`. */
235
+ export declare class StorageBuckets {
236
+ #private;
237
+ private readonly orgId;
238
+ constructor(rpc: ProvisioningRpc, orgId: string);
239
+ /**
240
+ * List the organization's bucket records as an array.
241
+ *
242
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
243
+ */
244
+ list(options?: RequestOptions): Promise<StorageBucket[]>;
245
+ /**
246
+ * Create a storage bucket and return its record.
247
+ *
248
+ * @param input - Requested bucket name.
249
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
250
+ */
251
+ create(input: {
252
+ name: string;
253
+ }, options?: RequestOptions): Promise<StorageBucket>;
254
+ /**
255
+ * Request deletion of a storage bucket.
256
+ *
257
+ * @param id - Bucket identifier, not its display name.
258
+ * @returns Resolves without a value after acknowledgement.
259
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
260
+ */
261
+ delete(id: string, options?: RequestOptions): Promise<void>;
262
+ }
263
+ /** Credentials scoped to one organization and bucket. Obtain through `org.storage.credentials(bucketId)`. */
264
+ export declare class StorageCredentials {
265
+ #private;
266
+ private readonly orgId;
267
+ private readonly bucketId;
268
+ constructor(rpc: ProvisioningRpc, orgId: string, bucketId: string);
269
+ /**
270
+ * List credential metadata for this bucket; plaintext secrets are not returned.
271
+ *
272
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
273
+ */
274
+ list(options?: RequestOptions): Promise<StorageCredential[]>;
275
+ /**
276
+ * Create a bucket credential with one-time access credentials.
277
+ *
278
+ * @param input - Optional display label for the credential.
279
+ * @returns Credential metadata plus `accessKeyId`, `secretAccessKey`, `endpoint`, and `region`. Store the secret at creation.
280
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
281
+ */
282
+ create(input?: {
283
+ label?: string;
284
+ }, options?: RequestOptions): Promise<CreatedStorageCredential>;
285
+ /**
286
+ * Revoke a bucket credential and return its updated metadata.
287
+ *
288
+ * @param id - Credential identifier from its record, not the access key or secret.
289
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
290
+ */
291
+ revoke(id: string, options?: RequestOptions): Promise<StorageCredential>;
292
+ }
293
+ /** Storage resources for the bound organization. Access through `org.storage`. */
294
+ export declare class Storage {
295
+ #private;
296
+ private readonly orgId;
297
+ /** Create, list, and delete storage buckets. */
298
+ readonly buckets: StorageBuckets;
299
+ constructor(rpc: ProvisioningRpc, orgId: string);
300
+ /**
301
+ * Bind credential operations to a bucket without making a network request.
302
+ *
303
+ * @param bucketId - Bucket identifier returned by `buckets.create()` or `buckets.list()`.
304
+ * @example
305
+ * const credentials = org.storage.credentials(bucket.id);
306
+ * const key = await credentials.create({ label: "worker" });
307
+ */
308
+ credentials(bucketId: string): StorageCredentials;
309
+ }
310
+ /** Hosted Git repositories for the bound organization. Access through `org.repositories`. */
311
+ export declare class GitRepositories {
312
+ #private;
313
+ private readonly orgId;
314
+ constructor(rpc: ProvisioningRpc, orgId: string);
315
+ /**
316
+ * List hosted Git repository records as an array.
317
+ *
318
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
319
+ */
320
+ list(options?: RequestOptions): Promise<GitRepository[]>;
321
+ /**
322
+ * Create a hosted Git repository and return its record.
323
+ *
324
+ * @param input - Repository name and optional description, visibility, and initialization settings.
325
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
326
+ */
327
+ create(input: GitRepositoryInput, options?: RequestOptions): Promise<GitRepository>;
328
+ /**
329
+ * Request deletion of a hosted Git repository.
330
+ *
331
+ * @param id - Repository identifier.
332
+ * @returns Resolves without a value after acknowledgement.
333
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
334
+ */
335
+ delete(id: string, options?: RequestOptions): Promise<void>;
336
+ }
337
+ /** Hosted Git access for the authenticated account. Access through `client.git`. */
338
+ export declare class Git {
339
+ #private;
340
+ constructor(rpc: ProvisioningRpc);
341
+ /**
342
+ * Ensure the account has a hosted Git identity and return its current access state.
343
+ *
344
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
345
+ */
346
+ ensureAccess(options?: RequestOptions): Promise<GitAccess>;
347
+ }
348
+ /** Organization context created by `client.org(id)`. Construction makes no network request; nested calls retain this organization ID. */
349
+ export declare class OrganizationScope {
350
+ #private;
351
+ /** Organization identifier automatically included in this scope's requests. */
352
+ readonly id: string;
353
+ /** Organization memberships. */
354
+ readonly members: Members;
355
+ /** Product entitlement requests. */
356
+ readonly accessRequests: AccessRequests;
357
+ /** API key creation, metadata, and revocation. */
358
+ readonly apiKeys: ApiKeys;
359
+ /** Inference quota and model policy. */
360
+ readonly quotas: Quotas;
361
+ /** Usage events and aggregate counters. */
362
+ readonly usage: Usage;
363
+ /** Managed inference services, agent hosts, and jobs. */
364
+ readonly compute: Compute;
365
+ /** Storage buckets and bucket-scoped credentials. */
366
+ readonly storage: Storage;
367
+ /** Hosted Git repositories. */
368
+ readonly repositories: GitRepositories;
369
+ /** Sandbox lifecycle, reusable templates, and code execution. */
370
+ readonly sandboxes: OrganizationSandboxes;
371
+ constructor(rpc: ProvisioningRpc, sandboxRpc: SandboxRpc,
372
+ /** Organization identifier automatically included in this scope's requests. */
373
+ id: string);
374
+ /**
375
+ * Fetch this organization's record.
376
+ *
377
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
378
+ */
379
+ get(options?: RequestOptions): Promise<Organization>;
380
+ /**
381
+ * Update this organization's display name and return its record.
382
+ *
383
+ * @param input - New non-empty display name; the immutable slug is unchanged.
384
+ * @param options - Per-call timeout in milliseconds, cancellation signal, and metadata.
385
+ */
386
+ update(input: {
387
+ name: string;
388
+ }, options?: RequestOptions): Promise<Organization>;
389
+ }