@sylphx/sdk 0.28.0 → 0.31.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 (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -114
  3. package/dist/access.d.ts +670 -0
  4. package/dist/access.js +640 -0
  5. package/dist/access.js.map +1 -0
  6. package/dist/ai.d.ts +176 -0
  7. package/dist/ai.js +112 -0
  8. package/dist/ai.js.map +1 -0
  9. package/dist/artifacts.d.ts +165 -0
  10. package/dist/artifacts.js +129 -0
  11. package/dist/artifacts.js.map +1 -0
  12. package/dist/auth/verify.d.ts +57 -0
  13. package/dist/auth/verify.js +157 -0
  14. package/dist/auth/verify.js.map +1 -0
  15. package/dist/auth.d.ts +896 -0
  16. package/dist/auth.js +828 -0
  17. package/dist/auth.js.map +1 -0
  18. package/dist/billing.d.ts +854 -0
  19. package/dist/billing.js +593 -0
  20. package/dist/billing.js.map +1 -0
  21. package/dist/broker.d.ts +226 -0
  22. package/dist/broker.js +187 -0
  23. package/dist/broker.js.map +1 -0
  24. package/dist/build.d.ts +313 -0
  25. package/dist/build.js +271 -0
  26. package/dist/build.js.map +1 -0
  27. package/dist/common.d.ts +162 -0
  28. package/dist/common.js +41 -0
  29. package/dist/common.js.map +1 -0
  30. package/dist/config.d.ts +198 -0
  31. package/dist/config.js +168 -0
  32. package/dist/config.js.map +1 -0
  33. package/dist/connections.d.ts +354 -0
  34. package/dist/connections.js +313 -0
  35. package/dist/connections.js.map +1 -0
  36. package/dist/data.d.ts +1141 -0
  37. package/dist/data.js +1082 -0
  38. package/dist/data.js.map +1 -0
  39. package/dist/entitlement.d.ts +179 -0
  40. package/dist/entitlement.js +117 -0
  41. package/dist/entitlement.js.map +1 -0
  42. package/dist/events.d.ts +1324 -0
  43. package/dist/events.js +1227 -0
  44. package/dist/events.js.map +1 -0
  45. package/dist/hosting.d.ts +709 -0
  46. package/dist/hosting.js +611 -0
  47. package/dist/hosting.js.map +1 -0
  48. package/dist/index.d.ts +79 -33656
  49. package/dist/index.js +113 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/keys.d.ts +438 -0
  52. package/dist/keys.js +406 -0
  53. package/dist/keys.js.map +1 -0
  54. package/dist/methods.d.ts +2 -0
  55. package/dist/methods.js +4200 -0
  56. package/dist/methods.js.map +1 -0
  57. package/dist/network.d.ts +733 -0
  58. package/dist/network.js +711 -0
  59. package/dist/network.js.map +1 -0
  60. package/dist/notify.d.ts +1753 -0
  61. package/dist/notify.js +1551 -0
  62. package/dist/notify.js.map +1 -0
  63. package/dist/observability.d.ts +509 -0
  64. package/dist/observability.js +437 -0
  65. package/dist/observability.js.map +1 -0
  66. package/dist/release.d.ts +303 -0
  67. package/dist/release.js +214 -0
  68. package/dist/release.js.map +1 -0
  69. package/dist/runners.d.ts +262 -0
  70. package/dist/runners.js +238 -0
  71. package/dist/runners.js.map +1 -0
  72. package/dist/runtime.d.ts +121 -0
  73. package/dist/runtime.js +305 -0
  74. package/dist/runtime.js.map +1 -0
  75. package/dist/sandboxes.d.ts +1705 -0
  76. package/dist/sandboxes.js +1226 -0
  77. package/dist/sandboxes.js.map +1 -0
  78. package/dist/secrets.d.ts +508 -0
  79. package/dist/secrets.js +474 -0
  80. package/dist/secrets.js.map +1 -0
  81. package/dist/workflows.d.ts +678 -0
  82. package/dist/workflows.js +595 -0
  83. package/dist/workflows.js.map +1 -0
  84. package/package.json +33 -112
  85. package/dist/connect.d.ts +0 -2838
  86. package/dist/connect.mjs +0 -220
  87. package/dist/connect.mjs.map +0 -1
  88. package/dist/health/index.d.ts +0 -1394
  89. package/dist/health/index.mjs +0 -1394
  90. package/dist/health/index.mjs.map +0 -1
  91. package/dist/index.mjs +0 -38429
  92. package/dist/index.mjs.map +0 -1
  93. package/dist/nextjs/index.d.ts +0 -724
  94. package/dist/nextjs/index.mjs +0 -3332
  95. package/dist/nextjs/index.mjs.map +0 -1
  96. package/dist/react/index.d.ts +0 -13066
  97. package/dist/react/index.mjs +0 -35329
  98. package/dist/react/index.mjs.map +0 -1
  99. package/dist/server/index.d.ts +0 -2000
  100. package/dist/server/index.mjs +0 -3446
  101. package/dist/server/index.mjs.map +0 -1
  102. package/dist/web-analytics.d.ts +0 -90
  103. package/dist/web-analytics.mjs +0 -225
  104. package/dist/web-analytics.mjs.map +0 -1
@@ -0,0 +1,670 @@
1
+ import * as runtime from './runtime.js';
2
+ import './common.js';
3
+ import type * as common from './common.js';
4
+ /**
5
+ * An ApiKey is a credential of one environment, or an org-wide key of an
6
+ * org (it acts on every project of the org; access-and-keys.md §3.2),
7
+ * issued only by Access (credentials.md: one key system). The secret is
8
+ * returned once, by Create and Roll, and never again.
9
+ */
10
+ export interface ApiKey {
11
+ /**
12
+ * `orgs/{org}/projects/{project}/envs/{env}/api_keys/{api_key}`, or
13
+ * `orgs/{org}/api_keys/{api_key}` for an org-wide key.
14
+ */
15
+ name?: string;
16
+ /** `key_<cell><ulid>`; equals the name segment. */
17
+ readonly uid?: string;
18
+ /** Resource metadata. */
19
+ meta?: common.ResourceMeta;
20
+ /** Desired state. */
21
+ spec?: ApiKeySpec;
22
+ /** Observed state. */
23
+ readonly status?: ApiKeyStatus;
24
+ }
25
+ /** ApiKeySpec is the caller-writable state of an ApiKey. */
26
+ export interface ApiKeySpec {
27
+ /**
28
+ * Secret (server-side) or publishable (browser, `publishable_ok` methods
29
+ * only).
30
+ */
31
+ kind?: ApiKeyKind;
32
+ /**
33
+ * Scopes `<service>:<action>` (access-and-keys.md §5.1), a subset of the
34
+ * creator's effective scopes.
35
+ */
36
+ scopes?: string[];
37
+ /** A free-form label, for example the talent id a key was minted for. */
38
+ label?: string;
39
+ /** When the key stops verifying; required in unclaimed projects. */
40
+ expireTime?: string;
41
+ }
42
+ /** ApiKeyStatus is the observed state of an ApiKey. */
43
+ export interface ApiKeyStatus {
44
+ /** The generation this status was computed from. */
45
+ readonly observedGeneration?: string;
46
+ /** Ready, Reconciling, Stalled. */
47
+ readonly conditions?: common.Condition[];
48
+ /** The full key. Set only in the responses of Create and Roll. */
49
+ readonly secret?: string;
50
+ /** The last four characters, for display. */
51
+ readonly last4?: string;
52
+ /** The key's own principal. */
53
+ readonly principal?: string;
54
+ /** Set when the key was revoked. */
55
+ readonly revokeTime?: string;
56
+ /** Why the key was revoked. */
57
+ readonly revokeReason?: RevokeReason;
58
+ /** When the key last verified, at snapshot granularity. */
59
+ readonly lastUseTime?: string;
60
+ /** The client address of the key's last use. */
61
+ readonly lastUseIp?: string;
62
+ /**
63
+ * A device key (`sylphx login`): bound to the approving human's role in
64
+ * the org, and revoked when that role changes or the human leaves.
65
+ */
66
+ readonly roleBound?: boolean;
67
+ }
68
+ /** The request of CreateApiKey. */
69
+ export interface CreateApiKeyRequest {
70
+ /** The parent to create in. */
71
+ parent: string;
72
+ /** The API key to create; only spec and caller-writable metadata are read. */
73
+ apiKey: ApiKey;
74
+ /** Validate and return the result without writing anything. */
75
+ validateOnly?: boolean;
76
+ }
77
+ /** The request of CreateEnvironment. */
78
+ export interface CreateEnvironmentRequest {
79
+ /** The parent to create in. */
80
+ parent: string;
81
+ /** The environment to create; only spec and caller-writable metadata are read. */
82
+ environment: Environment;
83
+ /** Validate and return the result without writing anything. */
84
+ validateOnly?: boolean;
85
+ }
86
+ /** The request of CreateOrg. */
87
+ export interface CreateOrgRequest {
88
+ /** The org to create; only spec and caller-writable metadata are read. */
89
+ org: Org;
90
+ /** Validate and return the result without writing anything. */
91
+ validateOnly?: boolean;
92
+ }
93
+ /** The request of CreateProject. */
94
+ export interface CreateProjectRequest {
95
+ /** The parent to create in. */
96
+ parent: string;
97
+ /** The project to create; only spec and caller-writable metadata are read. */
98
+ project: Project;
99
+ /** Validate and return the result without writing anything. */
100
+ validateOnly?: boolean;
101
+ }
102
+ /** The request of DeleteApiKey. */
103
+ export interface DeleteApiKeyRequest {
104
+ /** The name of the API key to delete. */
105
+ name: string;
106
+ /** Delete only if the current etag matches. */
107
+ etag?: string;
108
+ /** Validate without deleting anything. */
109
+ validateOnly?: boolean;
110
+ }
111
+ /** The request of DeleteEnvironment. */
112
+ export interface DeleteEnvironmentRequest {
113
+ /** The name of the environment to delete. */
114
+ name: string;
115
+ /** Delete only if the current etag matches. */
116
+ etag?: string;
117
+ /** Validate without deleting anything. */
118
+ validateOnly?: boolean;
119
+ /**
120
+ * Also delete every child Resource; without it a parent with children
121
+ * fails with FAILED_PRECONDITION.
122
+ */
123
+ force?: boolean;
124
+ }
125
+ /** The request of DeleteOrg. */
126
+ export interface DeleteOrgRequest {
127
+ /** The name of the org to delete. */
128
+ name: string;
129
+ /** Delete only if the current etag matches. */
130
+ etag?: string;
131
+ /** Validate without deleting anything. */
132
+ validateOnly?: boolean;
133
+ /**
134
+ * Also delete every child Resource; without it a parent with children
135
+ * fails with FAILED_PRECONDITION.
136
+ */
137
+ force?: boolean;
138
+ }
139
+ /** The request of DeleteProject. */
140
+ export interface DeleteProjectRequest {
141
+ /** The name of the project to delete. */
142
+ name: string;
143
+ /** Delete only if the current etag matches. */
144
+ etag?: string;
145
+ /** Validate without deleting anything. */
146
+ validateOnly?: boolean;
147
+ /**
148
+ * Also delete every child Resource; without it a parent with children
149
+ * fails with FAILED_PRECONDITION.
150
+ */
151
+ force?: boolean;
152
+ }
153
+ /**
154
+ * An Environment is a deployment target inside a Project (production,
155
+ * preview, dev, ...). Its mode decides which keys may touch it.
156
+ */
157
+ export interface Environment {
158
+ /** `orgs/{org}/projects/{project}/envs/{env}`. */
159
+ name?: string;
160
+ /** `env_<cell><ulid>`; equals the name segment. */
161
+ readonly uid?: string;
162
+ /** Resource metadata. */
163
+ meta?: common.ResourceMeta;
164
+ /** Desired state. */
165
+ spec?: EnvironmentSpec;
166
+ /** Observed state. */
167
+ readonly status?: EnvironmentStatus;
168
+ }
169
+ /** EnvironmentSpec is the caller-writable state of an Environment. */
170
+ export interface EnvironmentSpec {
171
+ /** Unique within the project, for example `production`. */
172
+ slug?: string;
173
+ /** Live or test; a test key never touches a live environment. */
174
+ mode?: EnvironmentMode;
175
+ }
176
+ /** EnvironmentStatus is the observed state of an Environment. */
177
+ export interface EnvironmentStatus {
178
+ /** The generation this status was computed from. */
179
+ readonly observedGeneration?: string;
180
+ /** Ready, Reconciling, Stalled. */
181
+ readonly conditions?: common.Condition[];
182
+ }
183
+ /** The request of GetApiKey. */
184
+ export interface GetApiKeyRequest {
185
+ /** The name of the API key to get. */
186
+ name: string;
187
+ }
188
+ /** The request of GetEnvironment. */
189
+ export interface GetEnvironmentRequest {
190
+ /** The name of the environment to get. */
191
+ name: string;
192
+ }
193
+ /** The request of GetOrg. */
194
+ export interface GetOrgRequest {
195
+ /** The name of the org to get. */
196
+ name: string;
197
+ }
198
+ /** The request of GetProject. */
199
+ export interface GetProjectRequest {
200
+ /** The name of the project to get. */
201
+ name: string;
202
+ }
203
+ /** The request of ListApiKeys. */
204
+ export interface ListApiKeysRequest {
205
+ /** The parent to list in. */
206
+ parent: string;
207
+ /** At most this many; default 50, clamped to 1000. */
208
+ pageSize?: number;
209
+ /** `next_page_token` of the previous page. */
210
+ pageToken?: string;
211
+ /** AIP-160 filter over labels, filterable spec fields, and Ready. */
212
+ filter?: string;
213
+ /** AIP-132 ordering over filterable fields. */
214
+ orderBy?: string;
215
+ }
216
+ /** The response of ListApiKeys. */
217
+ export interface ListApiKeysResponse {
218
+ /** The page. */
219
+ apiKeys?: ApiKey[];
220
+ /** The token of the next page; empty on the last page. */
221
+ nextPageToken?: string;
222
+ }
223
+ /** The request of ListEnvironments. */
224
+ export interface ListEnvironmentsRequest {
225
+ /** The parent to list in. */
226
+ parent: string;
227
+ /** At most this many; default 50, clamped to 1000. */
228
+ pageSize?: number;
229
+ /** `next_page_token` of the previous page. */
230
+ pageToken?: string;
231
+ /** AIP-160 filter over labels, filterable spec fields, and Ready. */
232
+ filter?: string;
233
+ /** AIP-132 ordering over filterable fields. */
234
+ orderBy?: string;
235
+ }
236
+ /** The response of ListEnvironments. */
237
+ export interface ListEnvironmentsResponse {
238
+ /** The page. */
239
+ envs?: Environment[];
240
+ /** The token of the next page; empty on the last page. */
241
+ nextPageToken?: string;
242
+ }
243
+ /** The request of ListOrgs. */
244
+ export interface ListOrgsRequest {
245
+ /** At most this many; default 50, clamped to 1000. */
246
+ pageSize?: number;
247
+ /** `next_page_token` of the previous page. */
248
+ pageToken?: string;
249
+ /** AIP-160 filter over labels, filterable spec fields, and Ready. */
250
+ filter?: string;
251
+ /** AIP-132 ordering over filterable fields. */
252
+ orderBy?: string;
253
+ }
254
+ /** The response of ListOrgs. */
255
+ export interface ListOrgsResponse {
256
+ /** The page. */
257
+ orgs?: Org[];
258
+ /** The token of the next page; empty on the last page. */
259
+ nextPageToken?: string;
260
+ }
261
+ /** The request of ListProjects. */
262
+ export interface ListProjectsRequest {
263
+ /** The parent to list in. */
264
+ parent: string;
265
+ /** At most this many; default 50, clamped to 1000. */
266
+ pageSize?: number;
267
+ /** `next_page_token` of the previous page. */
268
+ pageToken?: string;
269
+ /** AIP-160 filter over labels, filterable spec fields, and Ready. */
270
+ filter?: string;
271
+ /** AIP-132 ordering over filterable fields. */
272
+ orderBy?: string;
273
+ }
274
+ /** The response of ListProjects. */
275
+ export interface ListProjectsResponse {
276
+ /** The page. */
277
+ projects?: Project[];
278
+ /** The token of the next page; empty on the last page. */
279
+ nextPageToken?: string;
280
+ }
281
+ /** An Org is the one Sylphx account: created once, billed once. */
282
+ export interface Org {
283
+ /** `orgs/{org}`. */
284
+ name?: string;
285
+ /** `org_<cell><ulid>`; equals the name segment. */
286
+ readonly uid?: string;
287
+ /** Resource metadata. */
288
+ meta?: common.ResourceMeta;
289
+ /** Desired state. */
290
+ spec?: OrgSpec;
291
+ /** Observed state. */
292
+ readonly status?: OrgStatus;
293
+ }
294
+ /** OrgSpec is the caller-writable state of an Org. */
295
+ export interface OrgSpec {
296
+ /** Globally unique handle, resolved to the id by clients, never the server. */
297
+ slug?: string;
298
+ /**
299
+ * The API version (`YYYY-MM-DD`) requests are served at when neither the
300
+ * request nor the key pins one (§5).
301
+ */
302
+ apiVersion?: string;
303
+ }
304
+ /** OrgStatus is the observed state of an Org. */
305
+ export interface OrgStatus {
306
+ /** The generation this status was computed from. */
307
+ readonly observedGeneration?: string;
308
+ /** Ready, Reconciling, Stalled. */
309
+ readonly conditions?: common.Condition[];
310
+ /** How the org was created. */
311
+ readonly kind?: OrgKind;
312
+ /** The org's lifecycle state. */
313
+ readonly state?: OrgState;
314
+ /** The partner org, set iff `kind` is PARTNER_SUB. */
315
+ readonly parentOrg?: string;
316
+ /** The org's home Cell code, for example `hk01`. */
317
+ readonly homeCell?: string;
318
+ }
319
+ /** A Project groups environments and the Resources in them. */
320
+ export interface Project {
321
+ /** `orgs/{org}/projects/{project}`. */
322
+ name?: string;
323
+ /** `prj_<cell><ulid>`; equals the name segment. */
324
+ readonly uid?: string;
325
+ /** Resource metadata. */
326
+ meta?: common.ResourceMeta;
327
+ /** Desired state. */
328
+ spec?: ProjectSpec;
329
+ /** Observed state. */
330
+ readonly status?: ProjectStatus;
331
+ }
332
+ /** ProjectSpec is the caller-writable state of a Project. */
333
+ export interface ProjectSpec {
334
+ /** Unique within the org. */
335
+ slug?: string;
336
+ }
337
+ /** ProjectStatus is the observed state of a Project. */
338
+ export interface ProjectStatus {
339
+ /** The generation this status was computed from. */
340
+ readonly observedGeneration?: string;
341
+ /** Ready, Reconciling, Stalled. */
342
+ readonly conditions?: common.Condition[];
343
+ /** When an unclaimed project expires; unset once claimed. */
344
+ readonly expireTime?: string;
345
+ }
346
+ /** The request of RevokeApiKey. */
347
+ export interface RevokeApiKeyRequest {
348
+ /** The name of the API key to revoke. */
349
+ name: string;
350
+ /** Revoke only if the current etag matches. */
351
+ etag?: string;
352
+ /** Validate without revoking. */
353
+ validateOnly?: boolean;
354
+ }
355
+ /** The request of RollApiKey. */
356
+ export interface RollApiKeyRequest {
357
+ /** The name of the API key to roll. */
358
+ name: string;
359
+ /** How long the old key keeps verifying; default 24h. */
360
+ gracePeriod?: string;
361
+ /** Roll only if the current etag matches. */
362
+ etag?: string;
363
+ /** Validate without rolling. */
364
+ validateOnly?: boolean;
365
+ }
366
+ /** The request of UpdateApiKey. */
367
+ export interface UpdateApiKeyRequest {
368
+ /** The API key to update; `name` identifies it. */
369
+ apiKey: ApiKey;
370
+ /** The fields to write; unset writes every populated field. */
371
+ updateMask?: string;
372
+ /** Validate and return the result without writing anything. */
373
+ validateOnly?: boolean;
374
+ }
375
+ /** The request of UpdateEnvironment. */
376
+ export interface UpdateEnvironmentRequest {
377
+ /** The environment to update; `name` identifies it. */
378
+ environment: Environment;
379
+ /** The fields to write; unset writes every populated field. */
380
+ updateMask?: string;
381
+ /** Validate and return the result without writing anything. */
382
+ validateOnly?: boolean;
383
+ }
384
+ /** The request of UpdateOrg. */
385
+ export interface UpdateOrgRequest {
386
+ /** The org to update; `name` identifies it. */
387
+ org: Org;
388
+ /** The fields to write; unset writes every populated field. */
389
+ updateMask?: string;
390
+ /** Validate and return the result without writing anything. */
391
+ validateOnly?: boolean;
392
+ }
393
+ /** The request of UpdateProject. */
394
+ export interface UpdateProjectRequest {
395
+ /** The project to update; `name` identifies it. */
396
+ project: Project;
397
+ /** The fields to write; unset writes every populated field. */
398
+ updateMask?: string;
399
+ /** Validate and return the result without writing anything. */
400
+ validateOnly?: boolean;
401
+ }
402
+ /** The request of Whoami. */
403
+ export interface WhoamiRequest {
404
+ }
405
+ /** The caller of a request. */
406
+ export interface WhoamiResponse {
407
+ /** The authenticated principal, `principal_<cell><ulid>`. */
408
+ readonly principal?: string;
409
+ /** The API key that authenticated the request; empty for an OAuth token. */
410
+ readonly apiKey?: string;
411
+ /** The org the credential is scoped to. */
412
+ readonly org?: string;
413
+ /** The project the credential is scoped to; empty for an org-wide credential. */
414
+ readonly project?: string;
415
+ /** The environment the credential is scoped to; empty above an environment. */
416
+ readonly env?: string;
417
+ /** The credential's scopes, `<service>:<action>`. */
418
+ readonly scopes?: string[];
419
+ /**
420
+ * The API version date applied to this request (spec §5); empty before the
421
+ * first version.
422
+ */
423
+ readonly apiVersion?: string;
424
+ }
425
+ /** ApiKeyKind is whether a key may be shipped to a browser. */
426
+ export type ApiKeyKind = 'secret' | 'publishable' | (string & {});
427
+ /** EnvironmentMode separates live traffic from tests. */
428
+ export type EnvironmentMode = 'live' | 'test' | (string & {});
429
+ /** OrgKind is how an Org came to exist (onboarding spec §3). */
430
+ export type OrgKind = 'standard' | 'unclaimed' | 'partner_sub' | (string & {});
431
+ /** OrgState is the lifecycle state of an Org. */
432
+ export type OrgState = 'active' | 'suspended' | 'deleting' | (string & {});
433
+ /** RevokeReason is why an ApiKey stopped verifying. */
434
+ export type RevokeReason = 'user' | 'rotation' | 'leaked' | 'claimed' | 'claim_expired' | 'org_deleted' | 'admin' | 'role_changed' | 'logout' | (string & {});
435
+ /**
436
+ * AccessService is Sylphx Access: orgs, projects, environments, and API keys
437
+ * (resource-api-and-clients.md §7, access-and-keys.md §3.3). Access is the
438
+ * only writer of these types.
439
+ *
440
+ * Namespace of Sylphx Access on `Sylphx`.
441
+ */
442
+ export declare class AccessApi {
443
+ private readonly client;
444
+ /** The `orgs` collection. */
445
+ readonly orgs: OrgsCollection;
446
+ /** The `projects` collection. */
447
+ readonly projects: ProjectsCollection;
448
+ /** The `envs` collection. */
449
+ readonly envs: EnvsCollection;
450
+ /** The `api_keys` collection. */
451
+ readonly apiKeys: ApiKeysCollection;
452
+ constructor(client: runtime.Client);
453
+ /**
454
+ * Returns the caller: the principal and the scope of the key or token that
455
+ * authenticated this request. Clients fill their org, project, and env
456
+ * defaults from it (resource-api-and-clients.md §3.2); every valid key may
457
+ * call it, whatever its scopes.
458
+ *
459
+ * `GET /v1/whoami` · permission `access:whoami` · effect `read`
460
+ *
461
+ * Errors: `UNAUTHENTICATED`.
462
+ */
463
+ whoami(request: WhoamiRequest): Promise<WhoamiResponse>;
464
+ }
465
+ /** `orgs` of Sylphx Access: Resource type `access.sylphx.com/Org`. */
466
+ export declare class OrgsCollection {
467
+ private readonly client;
468
+ constructor(client: runtime.Client);
469
+ /**
470
+ * Gets an org.
471
+ *
472
+ * `GET /v1/{name=orgs/*}` · permission `access:read` · effect `read`
473
+ *
474
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
475
+ */
476
+ get(request: GetOrgRequest): Promise<Org>;
477
+ /**
478
+ * Lists orgs the caller can see.
479
+ *
480
+ * `GET /v1/orgs` · permission `access:read` · effect `read`
481
+ *
482
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
483
+ */
484
+ list(request: ListOrgsRequest): Promise<ListOrgsResponse>;
485
+ /** Every item of every page of `list`. */
486
+ listAll(request: ListOrgsRequest): AsyncGenerator<Org>;
487
+ /**
488
+ * Creates an org. Access assigns the id.
489
+ *
490
+ * `POST /v1/orgs` · permission `access:admin` · effect `write`
491
+ *
492
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
493
+ */
494
+ create(request: CreateOrgRequest): Promise<Org>;
495
+ /**
496
+ * Updates an org.
497
+ *
498
+ * `PATCH /v1/{org.name=orgs/*}` · permission `access:admin` · effect `write`
499
+ *
500
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
501
+ */
502
+ update(request: UpdateOrgRequest): Promise<Org>;
503
+ /**
504
+ * Deletes an org and everything in it. Deletion cascades through every
505
+ * service, so it returns an Operation.
506
+ *
507
+ * `DELETE /v1/{name=orgs/*}` · permission `access:admin` · effect `destructive`
508
+ *
509
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
510
+ */
511
+ delete(request: DeleteOrgRequest): Promise<runtime.Operation<Record<string, never>>>;
512
+ }
513
+ /** `projects` of Sylphx Access: Resource type `access.sylphx.com/Project`. */
514
+ export declare class ProjectsCollection {
515
+ private readonly client;
516
+ constructor(client: runtime.Client);
517
+ /**
518
+ * Gets a project.
519
+ *
520
+ * `GET /v1/{name=orgs/*\/projects/*}` · permission `access:read` · effect `read`
521
+ *
522
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
523
+ */
524
+ get(request: GetProjectRequest): Promise<Project>;
525
+ /**
526
+ * Lists projects in an org.
527
+ *
528
+ * `GET /v1/{parent=orgs/*}/projects` · permission `access:read` · effect `read`
529
+ *
530
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
531
+ */
532
+ list(request: ListProjectsRequest): Promise<ListProjectsResponse>;
533
+ /** Every item of every page of `list`. */
534
+ listAll(request: ListProjectsRequest): AsyncGenerator<Project>;
535
+ /**
536
+ * Creates a project. Access assigns the id.
537
+ *
538
+ * `POST /v1/{parent=orgs/*}/projects` · permission `access:admin` · effect `write`
539
+ *
540
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
541
+ */
542
+ create(request: CreateProjectRequest): Promise<Project>;
543
+ /**
544
+ * Updates a project.
545
+ *
546
+ * `PATCH /v1/{project.name=orgs/*\/projects/*}` · permission `access:admin` · effect `write`
547
+ *
548
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
549
+ */
550
+ update(request: UpdateProjectRequest): Promise<Project>;
551
+ /**
552
+ * Deletes a project.
553
+ *
554
+ * `DELETE /v1/{name=orgs/*\/projects/*}` · permission `access:admin` · effect `destructive`
555
+ *
556
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
557
+ */
558
+ delete(request: DeleteProjectRequest): Promise<Record<string, never>>;
559
+ }
560
+ /** `envs` of Sylphx Access: Resource type `access.sylphx.com/Environment`. */
561
+ export declare class EnvsCollection {
562
+ private readonly client;
563
+ constructor(client: runtime.Client);
564
+ /**
565
+ * Gets an environment.
566
+ *
567
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*}` · permission `access:read` · effect `read`
568
+ *
569
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
570
+ */
571
+ get(request: GetEnvironmentRequest): Promise<Environment>;
572
+ /**
573
+ * Lists environments in a project.
574
+ *
575
+ * `GET /v1/{parent=orgs/*\/projects/*}/envs` · permission `access:read` · effect `read`
576
+ *
577
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
578
+ */
579
+ list(request: ListEnvironmentsRequest): Promise<ListEnvironmentsResponse>;
580
+ /** Every item of every page of `list`. */
581
+ listAll(request: ListEnvironmentsRequest): AsyncGenerator<Environment>;
582
+ /**
583
+ * Creates an environment. Access assigns the id.
584
+ *
585
+ * `POST /v1/{parent=orgs/*\/projects/*}/envs` · permission `access:admin` · effect `write`
586
+ *
587
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
588
+ */
589
+ create(request: CreateEnvironmentRequest): Promise<Environment>;
590
+ /**
591
+ * Updates an environment.
592
+ *
593
+ * `PATCH /v1/{environment.name=orgs/*\/projects/*\/envs/*}` · permission `access:admin` · effect `write`
594
+ *
595
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
596
+ */
597
+ update(request: UpdateEnvironmentRequest): Promise<Environment>;
598
+ /**
599
+ * Deletes an environment.
600
+ *
601
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*}` · permission `access:admin` · effect `destructive`
602
+ *
603
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
604
+ */
605
+ delete(request: DeleteEnvironmentRequest): Promise<Record<string, never>>;
606
+ }
607
+ /** `api_keys` of Sylphx Access: Resource type `access.sylphx.com/ApiKey`. */
608
+ export declare class ApiKeysCollection {
609
+ private readonly client;
610
+ constructor(client: runtime.Client);
611
+ /**
612
+ * Gets an API key.
613
+ *
614
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/api_keys/*}` · permission `access:read` · effect `read`
615
+ *
616
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
617
+ */
618
+ get(request: GetApiKeyRequest): Promise<ApiKey>;
619
+ /**
620
+ * Lists API keys in an environment, or the org-wide keys of an org.
621
+ *
622
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/api_keys` · permission `access:read` · effect `read`
623
+ *
624
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
625
+ */
626
+ list(request: ListApiKeysRequest): Promise<ListApiKeysResponse>;
627
+ /** Every item of every page of `list`. */
628
+ listAll(request: ListApiKeysRequest): AsyncGenerator<ApiKey>;
629
+ /**
630
+ * Creates an API key. Access assigns the id.
631
+ *
632
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/api_keys` · permission `access:keys:write` · effect `write`
633
+ *
634
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
635
+ */
636
+ create(request: CreateApiKeyRequest): Promise<ApiKey>;
637
+ /**
638
+ * Updates an API key.
639
+ *
640
+ * `PATCH /v1/{api_key.name=orgs/*\/projects/*\/envs/*\/api_keys/*}` · permission `access:keys:write` · effect `write`
641
+ *
642
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
643
+ */
644
+ update(request: UpdateApiKeyRequest): Promise<ApiKey>;
645
+ /**
646
+ * Deletes an API key.
647
+ *
648
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/api_keys/*}` · permission `access:keys:write` · effect `destructive`
649
+ *
650
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
651
+ */
652
+ delete(request: DeleteApiKeyRequest): Promise<Record<string, never>>;
653
+ /**
654
+ * Revokes an API key immediately; revocation rides the priority chunk.
655
+ *
656
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/api_keys/*}:revoke` · permission `access:keys:write` · effect `destructive`
657
+ *
658
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
659
+ */
660
+ revoke(request: RevokeApiKeyRequest): Promise<ApiKey>;
661
+ /**
662
+ * Rolls an API key: returns a new key with the same spec and revokes the
663
+ * old one after the grace period.
664
+ *
665
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/api_keys/*}:roll` · permission `access:keys:write` · effect `write`
666
+ *
667
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
668
+ */
669
+ roll(request: RollApiKeyRequest): Promise<ApiKey>;
670
+ }