@sylphx/sdk 0.31.0 → 0.32.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.
Files changed (120) hide show
  1. package/README.md +131 -4
  2. package/dist/access.d.ts +146 -17
  3. package/dist/access.js +114 -8
  4. package/dist/access.js.map +1 -1
  5. package/dist/agents.d.ts +1564 -0
  6. package/dist/agents.js +1096 -0
  7. package/dist/agents.js.map +1 -0
  8. package/dist/ai.d.ts +1 -2
  9. package/dist/ai.js +2 -3
  10. package/dist/ai.js.map +1 -1
  11. package/dist/artifacts.d.ts +1 -1
  12. package/dist/artifacts.js +2 -2
  13. package/dist/assets.d.ts +447 -0
  14. package/dist/assets.js +266 -0
  15. package/dist/assets.js.map +1 -0
  16. package/dist/auth/client.d.ts +239 -0
  17. package/dist/auth/client.js +337 -0
  18. package/dist/auth/client.js.map +1 -0
  19. package/dist/auth/end-user-keys-mock.d.ts +83 -0
  20. package/dist/auth/end-user-keys-mock.js +427 -0
  21. package/dist/auth/end-user-keys-mock.js.map +1 -0
  22. package/dist/auth/end-user-keys.d.ts +219 -0
  23. package/dist/auth/end-user-keys.js +240 -0
  24. package/dist/auth/end-user-keys.js.map +1 -0
  25. package/dist/auth/verify.d.ts +38 -3
  26. package/dist/auth/verify.js +58 -8
  27. package/dist/auth/verify.js.map +1 -1
  28. package/dist/auth.d.ts +656 -9
  29. package/dist/auth.js +563 -6
  30. package/dist/auth.js.map +1 -1
  31. package/dist/billing.d.ts +99 -21
  32. package/dist/billing.js +43 -5
  33. package/dist/billing.js.map +1 -1
  34. package/dist/broker.d.ts +5 -4
  35. package/dist/broker.js +3 -3
  36. package/dist/broker.js.map +1 -1
  37. package/dist/build.d.ts +362 -29
  38. package/dist/build.js +302 -10
  39. package/dist/build.js.map +1 -1
  40. package/dist/common.d.ts +1 -1
  41. package/dist/common.js +1 -1
  42. package/dist/config/flags.d.ts +140 -0
  43. package/dist/config/flags.js +462 -0
  44. package/dist/config/flags.js.map +1 -0
  45. package/dist/config.d.ts +380 -15
  46. package/dist/config.js +283 -5
  47. package/dist/config.js.map +1 -1
  48. package/dist/connections.d.ts +6 -6
  49. package/dist/connections.js +3 -3
  50. package/dist/data.d.ts +612 -7
  51. package/dist/data.js +566 -4
  52. package/dist/data.js.map +1 -1
  53. package/dist/entitlement.d.ts +10 -8
  54. package/dist/entitlement.js +3 -4
  55. package/dist/entitlement.js.map +1 -1
  56. package/dist/events/realtime.d.ts +69 -0
  57. package/dist/events/realtime.js +107 -0
  58. package/dist/events/realtime.js.map +1 -0
  59. package/dist/events/webhooks.d.ts +40 -0
  60. package/dist/events/webhooks.js +110 -0
  61. package/dist/events/webhooks.js.map +1 -0
  62. package/dist/events.d.ts +369 -22
  63. package/dist/events.js +311 -8
  64. package/dist/events.js.map +1 -1
  65. package/dist/flags.d.ts +18 -0
  66. package/dist/flags.js +44 -0
  67. package/dist/flags.js.map +1 -0
  68. package/dist/hosting.d.ts +13 -14
  69. package/dist/hosting.js +3 -4
  70. package/dist/hosting.js.map +1 -1
  71. package/dist/ids.d.ts +987 -0
  72. package/dist/ids.js +317 -0
  73. package/dist/ids.js.map +1 -0
  74. package/dist/index.d.ts +25 -1
  75. package/dist/index.js +34 -2
  76. package/dist/index.js.map +1 -1
  77. package/dist/keys.d.ts +2 -2
  78. package/dist/keys.js +3 -3
  79. package/dist/knowledge.d.ts +1192 -0
  80. package/dist/knowledge.js +1002 -0
  81. package/dist/knowledge.js.map +1 -0
  82. package/dist/localization.d.ts +663 -0
  83. package/dist/localization.js +491 -0
  84. package/dist/localization.js.map +1 -0
  85. package/dist/methods.js +3251 -133
  86. package/dist/methods.js.map +1 -1
  87. package/dist/money.d.ts +3086 -0
  88. package/dist/money.js +2358 -0
  89. package/dist/money.js.map +1 -0
  90. package/dist/network.d.ts +4 -5
  91. package/dist/network.js +3 -4
  92. package/dist/network.js.map +1 -1
  93. package/dist/notify.d.ts +667 -125
  94. package/dist/notify.js +471 -73
  95. package/dist/notify.js.map +1 -1
  96. package/dist/observability.d.ts +322 -7
  97. package/dist/observability.js +244 -8
  98. package/dist/observability.js.map +1 -1
  99. package/dist/realtime.d.ts +404 -0
  100. package/dist/realtime.js +312 -0
  101. package/dist/realtime.js.map +1 -0
  102. package/dist/release.d.ts +14 -15
  103. package/dist/release.js +3 -4
  104. package/dist/release.js.map +1 -1
  105. package/dist/runners.d.ts +2 -3
  106. package/dist/runners.js +3 -4
  107. package/dist/runners.js.map +1 -1
  108. package/dist/runtime.d.ts +5 -1
  109. package/dist/runtime.js +7 -3
  110. package/dist/runtime.js.map +1 -1
  111. package/dist/sandboxes.d.ts +64 -20
  112. package/dist/sandboxes.js +9 -4
  113. package/dist/sandboxes.js.map +1 -1
  114. package/dist/secrets.d.ts +342 -6
  115. package/dist/secrets.js +271 -4
  116. package/dist/secrets.js.map +1 -1
  117. package/dist/workflows.d.ts +969 -15
  118. package/dist/workflows.js +815 -6
  119. package/dist/workflows.js.map +1 -1
  120. package/package.json +2 -2
package/dist/ids.d.ts ADDED
@@ -0,0 +1,987 @@
1
+ /** One registered prefix of `contracts/ids.toml`. */
2
+ export interface PrefixInfo {
3
+ readonly prefix: string;
4
+ readonly entity: string;
5
+ readonly service: string;
6
+ readonly collection: string | null;
7
+ }
8
+ export declare const PREFIXES: readonly [{
9
+ readonly prefix: "org";
10
+ readonly entity: "Org";
11
+ readonly service: "access";
12
+ readonly collection: "orgs";
13
+ }, {
14
+ readonly prefix: "prj";
15
+ readonly entity: "Project";
16
+ readonly service: "access";
17
+ readonly collection: "projects";
18
+ }, {
19
+ readonly prefix: "env";
20
+ readonly entity: "Environment";
21
+ readonly service: "access";
22
+ readonly collection: "envs";
23
+ }, {
24
+ readonly prefix: "key";
25
+ readonly entity: "ApiKey";
26
+ readonly service: "access";
27
+ readonly collection: "api_keys";
28
+ }, {
29
+ readonly prefix: "prn";
30
+ readonly entity: "Principal";
31
+ readonly service: "access";
32
+ readonly collection: null;
33
+ }, {
34
+ readonly prefix: "dvg";
35
+ readonly entity: "DeviceGrant";
36
+ readonly service: "access";
37
+ readonly collection: null;
38
+ }, {
39
+ readonly prefix: "omb";
40
+ readonly entity: "OrgMember";
41
+ readonly service: "access";
42
+ readonly collection: null;
43
+ }, {
44
+ readonly prefix: "mbr";
45
+ readonly entity: "Member";
46
+ readonly service: "auth";
47
+ readonly collection: "memberships";
48
+ }, {
49
+ readonly prefix: "usr";
50
+ readonly entity: "User";
51
+ readonly service: "auth";
52
+ readonly collection: "end_users";
53
+ }, {
54
+ readonly prefix: "sess";
55
+ readonly entity: "Session";
56
+ readonly service: "auth";
57
+ readonly collection: "sessions";
58
+ }, {
59
+ readonly prefix: "acfg";
60
+ readonly entity: "AuthConfig";
61
+ readonly service: "auth";
62
+ readonly collection: "auth_configs";
63
+ }, {
64
+ readonly prefix: "aorg";
65
+ readonly entity: "AuthOrganization";
66
+ readonly service: "auth";
67
+ readonly collection: null;
68
+ }, {
69
+ readonly prefix: "cor";
70
+ readonly entity: "CustomerOrganization";
71
+ readonly service: "auth";
72
+ readonly collection: "customer_organizations";
73
+ }, {
74
+ readonly prefix: "edm";
75
+ readonly entity: "EmailDomain";
76
+ readonly service: "auth";
77
+ readonly collection: "email_domains";
78
+ }, {
79
+ readonly prefix: "ivt";
80
+ readonly entity: "Invitation";
81
+ readonly service: "auth";
82
+ readonly collection: "invitations";
83
+ }, {
84
+ readonly prefix: "oac";
85
+ readonly entity: "OauthClient";
86
+ readonly service: "auth";
87
+ readonly collection: "oauth_clients";
88
+ }, {
89
+ readonly prefix: "orl";
90
+ readonly entity: "OrganizationRole";
91
+ readonly service: "auth";
92
+ readonly collection: "organization_roles";
93
+ }, {
94
+ readonly prefix: "agt";
95
+ readonly entity: "Agent";
96
+ readonly service: "agents";
97
+ readonly collection: "agents";
98
+ }, {
99
+ readonly prefix: "agv";
100
+ readonly entity: "AgentVersion";
101
+ readonly service: "agents";
102
+ readonly collection: "agent_versions";
103
+ }, {
104
+ readonly prefix: "ases";
105
+ readonly entity: "AgentSession";
106
+ readonly service: "agents";
107
+ readonly collection: "agent_sessions";
108
+ }, {
109
+ readonly prefix: "sevt";
110
+ readonly entity: "SessionEvent";
111
+ readonly service: "agents";
112
+ readonly collection: "session_events";
113
+ }, {
114
+ readonly prefix: "mst";
115
+ readonly entity: "MemoryStore";
116
+ readonly service: "agents";
117
+ readonly collection: "memory_stores";
118
+ }, {
119
+ readonly prefix: "mem";
120
+ readonly entity: "Memory";
121
+ readonly service: "agents";
122
+ readonly collection: "memories";
123
+ }, {
124
+ readonly prefix: "mdl";
125
+ readonly entity: "AiModel";
126
+ readonly service: "ai";
127
+ readonly collection: "ai_models";
128
+ }, {
129
+ readonly prefix: "ai";
130
+ readonly entity: "AiUsage";
131
+ readonly service: "ai";
132
+ readonly collection: null;
133
+ }, {
134
+ readonly prefix: "llm";
135
+ readonly entity: "LlmLog";
136
+ readonly service: "ai";
137
+ readonly collection: null;
138
+ }, {
139
+ readonly prefix: "art";
140
+ readonly entity: "Artifact";
141
+ readonly service: "artifacts";
142
+ readonly collection: "artifacts";
143
+ }, {
144
+ readonly prefix: "bac";
145
+ readonly entity: "BillingAccount";
146
+ readonly service: "billing";
147
+ readonly collection: "billing_accounts";
148
+ }, {
149
+ readonly prefix: "bls";
150
+ readonly entity: "BudgetLease";
151
+ readonly service: "billing";
152
+ readonly collection: "budget_leases";
153
+ }, {
154
+ readonly prefix: "inv";
155
+ readonly entity: "Invoice";
156
+ readonly service: "billing";
157
+ readonly collection: "invoices";
158
+ }, {
159
+ readonly prefix: "met";
160
+ readonly entity: "Meter";
161
+ readonly service: "billing";
162
+ readonly collection: "meters";
163
+ }, {
164
+ readonly prefix: "plan";
165
+ readonly entity: "Plan";
166
+ readonly service: "billing";
167
+ readonly collection: "plans";
168
+ }, {
169
+ readonly prefix: "urp";
170
+ readonly entity: "UsageReport";
171
+ readonly service: "billing";
172
+ readonly collection: "usage_reports";
173
+ }, {
174
+ readonly prefix: "bsub";
175
+ readonly entity: "BillingSubscription";
176
+ readonly service: "billing";
177
+ readonly collection: null;
178
+ }, {
179
+ readonly prefix: "sitem";
180
+ readonly entity: "SubscriptionItem";
181
+ readonly service: "billing";
182
+ readonly collection: null;
183
+ }, {
184
+ readonly prefix: "ause";
185
+ readonly entity: "ApiUsage";
186
+ readonly service: "billing";
187
+ readonly collection: null;
188
+ }, {
189
+ readonly prefix: "acc";
190
+ readonly entity: "LedgerAccount";
191
+ readonly service: "ledger";
192
+ readonly collection: null;
193
+ }, {
194
+ readonly prefix: "txn";
195
+ readonly entity: "LedgerTransaction";
196
+ readonly service: "ledger";
197
+ readonly collection: null;
198
+ }, {
199
+ readonly prefix: "tpol";
200
+ readonly entity: "TrustPolicy";
201
+ readonly service: "broker";
202
+ readonly collection: "trust_policies";
203
+ }, {
204
+ readonly prefix: "bld";
205
+ readonly entity: "Build";
206
+ readonly service: "build";
207
+ readonly collection: "builds";
208
+ }, {
209
+ readonly prefix: "bcc";
210
+ readonly entity: "BuildCache";
211
+ readonly service: "build";
212
+ readonly collection: "build_caches";
213
+ }, {
214
+ readonly prefix: "chg";
215
+ readonly entity: "ConfigChange";
216
+ readonly service: "config";
217
+ readonly collection: "config_changes";
218
+ }, {
219
+ readonly prefix: "flag";
220
+ readonly entity: "ConfigFlag";
221
+ readonly service: "config";
222
+ readonly collection: "config_flags";
223
+ }, {
224
+ readonly prefix: "seg";
225
+ readonly entity: "ConfigSegment";
226
+ readonly service: "config";
227
+ readonly collection: "config_segments";
228
+ }, {
229
+ readonly prefix: "conn";
230
+ readonly entity: "Connection";
231
+ readonly service: "connections";
232
+ readonly collection: "connections";
233
+ }, {
234
+ readonly prefix: "cprv";
235
+ readonly entity: "ConnectionProvider";
236
+ readonly service: "connections";
237
+ readonly collection: "connection_providers";
238
+ }, {
239
+ readonly prefix: "bkt";
240
+ readonly entity: "Bucket";
241
+ readonly service: "data";
242
+ readonly collection: "buckets";
243
+ }, {
244
+ readonly prefix: "db";
245
+ readonly entity: "Database";
246
+ readonly service: "data";
247
+ readonly collection: "databases";
248
+ }, {
249
+ readonly prefix: "kv";
250
+ readonly entity: "KvNamespace";
251
+ readonly service: "data";
252
+ readonly collection: "kv_namespaces";
253
+ }, {
254
+ readonly prefix: "idx";
255
+ readonly entity: "SearchIndex";
256
+ readonly service: "data";
257
+ readonly collection: "search_indexes";
258
+ }, {
259
+ readonly prefix: "cus";
260
+ readonly entity: "Customer";
261
+ readonly service: "data";
262
+ readonly collection: null;
263
+ }, {
264
+ readonly prefix: "ent";
265
+ readonly entity: "Entitlement";
266
+ readonly service: "entitlement";
267
+ readonly collection: "entitlements";
268
+ }, {
269
+ readonly prefix: "evt";
270
+ readonly entity: "Event";
271
+ readonly service: "events";
272
+ readonly collection: "events";
273
+ }, {
274
+ readonly prefix: "ibe";
275
+ readonly entity: "InboundEndpoint";
276
+ readonly service: "events";
277
+ readonly collection: "inbound_endpoints";
278
+ }, {
279
+ readonly prefix: "que";
280
+ readonly entity: "Queue";
281
+ readonly service: "events";
282
+ readonly collection: "queues";
283
+ }, {
284
+ readonly prefix: "rtc";
285
+ readonly entity: "RealtimeChannel";
286
+ readonly service: "events";
287
+ readonly collection: "realtime_channels";
288
+ }, {
289
+ readonly prefix: "rtm";
290
+ readonly entity: "RealtimeMember";
291
+ readonly service: "events";
292
+ readonly collection: "realtime_members";
293
+ }, {
294
+ readonly prefix: "rtg";
295
+ readonly entity: "RealtimeMessage";
296
+ readonly service: "events";
297
+ readonly collection: "realtime_messages";
298
+ }, {
299
+ readonly prefix: "sub";
300
+ readonly entity: "Subscription";
301
+ readonly service: "events";
302
+ readonly collection: "subscriptions";
303
+ }, {
304
+ readonly prefix: "top";
305
+ readonly entity: "Topic";
306
+ readonly service: "events";
307
+ readonly collection: "topics";
308
+ }, {
309
+ readonly prefix: "whd";
310
+ readonly entity: "WebhookDelivery";
311
+ readonly service: "events";
312
+ readonly collection: "webhook_deliveries";
313
+ }, {
314
+ readonly prefix: "whk";
315
+ readonly entity: "WebhookEndpoint";
316
+ readonly service: "events";
317
+ readonly collection: "webhook_endpoints";
318
+ }, {
319
+ readonly prefix: "prv";
320
+ readonly entity: "Preview";
321
+ readonly service: "hosting";
322
+ readonly collection: "previews";
323
+ }, {
324
+ readonly prefix: "srl";
325
+ readonly entity: "ServiceRollout";
326
+ readonly service: "hosting";
327
+ readonly collection: "service_rollouts";
328
+ }, {
329
+ readonly prefix: "svc";
330
+ readonly entity: "Service";
331
+ readonly service: "hosting";
332
+ readonly collection: "services";
333
+ }, {
334
+ readonly prefix: "slnk";
335
+ readonly entity: "SourceLink";
336
+ readonly service: "hosting";
337
+ readonly collection: "source_links";
338
+ }, {
339
+ readonly prefix: "kms";
340
+ readonly entity: "Key";
341
+ readonly service: "keys";
342
+ readonly collection: "keys";
343
+ }, {
344
+ readonly prefix: "kmsv";
345
+ readonly entity: "KeyVersion";
346
+ readonly service: "keys";
347
+ readonly collection: "key_versions";
348
+ }, {
349
+ readonly prefix: "cert";
350
+ readonly entity: "Certificate";
351
+ readonly service: "network";
352
+ readonly collection: "certificates";
353
+ }, {
354
+ readonly prefix: "dom";
355
+ readonly entity: "Domain";
356
+ readonly service: "network";
357
+ readonly collection: "domains";
358
+ }, {
359
+ readonly prefix: "egr";
360
+ readonly entity: "EgressIdentity";
361
+ readonly service: "network";
362
+ readonly collection: "egress_identities";
363
+ }, {
364
+ readonly prefix: "plk";
365
+ readonly entity: "PrivateLink";
366
+ readonly service: "network";
367
+ readonly collection: "private_links";
368
+ }, {
369
+ readonly prefix: "rt";
370
+ readonly entity: "Route";
371
+ readonly service: "network";
372
+ readonly collection: "routes";
373
+ }, {
374
+ readonly prefix: "bcst";
375
+ readonly entity: "Broadcast";
376
+ readonly service: "notify";
377
+ readonly collection: "broadcasts";
378
+ }, {
379
+ readonly prefix: "iem";
380
+ readonly entity: "InboundEmail";
381
+ readonly service: "notify";
382
+ readonly collection: "inbound_emails";
383
+ }, {
384
+ readonly prefix: "inbx";
385
+ readonly entity: "InboxItem";
386
+ readonly service: "notify";
387
+ readonly collection: "inbox_items";
388
+ }, {
389
+ readonly prefix: "mbx";
390
+ readonly entity: "Mailbox";
391
+ readonly service: "notify";
392
+ readonly collection: "mailboxes";
393
+ }, {
394
+ readonly prefix: "mcl";
395
+ readonly entity: "MailboxConnectLink";
396
+ readonly service: "notify";
397
+ readonly collection: "mailbox_connect_links";
398
+ }, {
399
+ readonly prefix: "moa";
400
+ readonly entity: "MailboxOauthApp";
401
+ readonly service: "notify";
402
+ readonly collection: "mailbox_oauth_apps";
403
+ }, {
404
+ readonly prefix: "msg";
405
+ readonly entity: "Message";
406
+ readonly service: "notify";
407
+ readonly collection: "messages";
408
+ }, {
409
+ readonly prefix: "prf";
410
+ readonly entity: "Preference";
411
+ readonly service: "notify";
412
+ readonly collection: "preferences";
413
+ }, {
414
+ readonly prefix: "rcp";
415
+ readonly entity: "Recipient";
416
+ readonly service: "notify";
417
+ readonly collection: "recipients";
418
+ }, {
419
+ readonly prefix: "snd";
420
+ readonly entity: "Sender";
421
+ readonly service: "notify";
422
+ readonly collection: "senders";
423
+ }, {
424
+ readonly prefix: "sdm";
425
+ readonly entity: "EmailDomain";
426
+ readonly service: "notify";
427
+ readonly collection: "mail_domains";
428
+ }, {
429
+ readonly prefix: "sup";
430
+ readonly entity: "Suppression";
431
+ readonly service: "notify";
432
+ readonly collection: "suppressions";
433
+ }, {
434
+ readonly prefix: "tmpl";
435
+ readonly entity: "Template";
436
+ readonly service: "notify";
437
+ readonly collection: "templates";
438
+ }, {
439
+ readonly prefix: "eev";
440
+ readonly entity: "ErrorEvent";
441
+ readonly service: "observability";
442
+ readonly collection: "error_events";
443
+ }, {
444
+ readonly prefix: "egrp";
445
+ readonly entity: "ErrorGroup";
446
+ readonly service: "observability";
447
+ readonly collection: "error_groups";
448
+ }, {
449
+ readonly prefix: "log";
450
+ readonly entity: "LogEntry";
451
+ readonly service: "observability";
452
+ readonly collection: "log_entries";
453
+ }, {
454
+ readonly prefix: "scrp";
455
+ readonly entity: "ScrubbingPolicy";
456
+ readonly service: "observability";
457
+ readonly collection: "scrubbing_policies";
458
+ }, {
459
+ readonly prefix: "smap";
460
+ readonly entity: "SourceMap";
461
+ readonly service: "observability";
462
+ readonly collection: "source_maps";
463
+ }, {
464
+ readonly prefix: "trc";
465
+ readonly entity: "Trace";
466
+ readonly service: "observability";
467
+ readonly collection: "traces";
468
+ }, {
469
+ readonly prefix: "gen";
470
+ readonly entity: "Generation";
471
+ readonly service: "observability";
472
+ readonly collection: "generations";
473
+ }, {
474
+ readonly prefix: "err";
475
+ readonly entity: "ErrorRecord";
476
+ readonly service: "observability";
477
+ readonly collection: null;
478
+ }, {
479
+ readonly prefix: "rel";
480
+ readonly entity: "Release";
481
+ readonly service: "release";
482
+ readonly collection: "releases";
483
+ }, {
484
+ readonly prefix: "rol";
485
+ readonly entity: "Rollout";
486
+ readonly service: "release";
487
+ readonly collection: "rollouts";
488
+ }, {
489
+ readonly prefix: "run";
490
+ readonly entity: "Runner";
491
+ readonly service: "runners";
492
+ readonly collection: "runners";
493
+ }, {
494
+ readonly prefix: "sset";
495
+ readonly entity: "ScaleSet";
496
+ readonly service: "runners";
497
+ readonly collection: "scale_sets";
498
+ }, {
499
+ readonly prefix: "lse";
500
+ readonly entity: "Lease";
501
+ readonly service: "sandboxes";
502
+ readonly collection: "leases";
503
+ }, {
504
+ readonly prefix: "lev";
505
+ readonly entity: "LeaseEvent";
506
+ readonly service: "sandboxes";
507
+ readonly collection: "lease_events";
508
+ }, {
509
+ readonly prefix: "pool";
510
+ readonly entity: "Pool";
511
+ readonly service: "sandboxes";
512
+ readonly collection: "pools";
513
+ }, {
514
+ readonly prefix: "shp";
515
+ readonly entity: "Shape";
516
+ readonly service: "sandboxes";
517
+ readonly collection: "sandbox_shapes";
518
+ }, {
519
+ readonly prefix: "snap";
520
+ readonly entity: "Snapshot";
521
+ readonly service: "sandboxes";
522
+ readonly collection: "snapshots";
523
+ }, {
524
+ readonly prefix: "vol";
525
+ readonly entity: "Volume";
526
+ readonly service: "sandboxes";
527
+ readonly collection: "volumes";
528
+ }, {
529
+ readonly prefix: "sbx";
530
+ readonly entity: "Sandbox";
531
+ readonly service: "sandboxes";
532
+ readonly collection: null;
533
+ }, {
534
+ readonly prefix: "sec";
535
+ readonly entity: "Secret";
536
+ readonly service: "secrets";
537
+ readonly collection: "secrets";
538
+ }, {
539
+ readonly prefix: "secv";
540
+ readonly entity: "SecretVersion";
541
+ readonly service: "secrets";
542
+ readonly collection: "secret_versions";
543
+ }, {
544
+ readonly prefix: "secb";
545
+ readonly entity: "SecretBinding";
546
+ readonly service: "secrets";
547
+ readonly collection: "secret_bindings";
548
+ }, {
549
+ readonly prefix: "pfl";
550
+ readonly entity: "Profile";
551
+ readonly service: "secrets";
552
+ readonly collection: "profiles";
553
+ }, {
554
+ readonly prefix: "pflv";
555
+ readonly entity: "ProfileVersion";
556
+ readonly service: "secrets";
557
+ readonly collection: "profile_versions";
558
+ }, {
559
+ readonly prefix: "pfla";
560
+ readonly entity: "ProfileAttachment";
561
+ readonly service: "secrets";
562
+ readonly collection: null;
563
+ }, {
564
+ readonly prefix: "job";
565
+ readonly entity: "Run";
566
+ readonly service: "workflows";
567
+ readonly collection: "runs";
568
+ }, {
569
+ readonly prefix: "sched";
570
+ readonly entity: "Schedule";
571
+ readonly service: "workflows";
572
+ readonly collection: "schedules";
573
+ }, {
574
+ readonly prefix: "wf";
575
+ readonly entity: "Workflow";
576
+ readonly service: "workflows";
577
+ readonly collection: "workflows";
578
+ }, {
579
+ readonly prefix: "esvc";
580
+ readonly entity: "EnvService";
581
+ readonly service: "platform";
582
+ readonly collection: null;
583
+ }, {
584
+ readonly prefix: "dpl";
585
+ readonly entity: "Deploy";
586
+ readonly service: "platform";
587
+ readonly collection: null;
588
+ }, {
589
+ readonly prefix: "tok";
590
+ readonly entity: "Token";
591
+ readonly service: "platform";
592
+ readonly collection: null;
593
+ }, {
594
+ readonly prefix: "task";
595
+ readonly entity: "Task";
596
+ readonly service: "platform";
597
+ readonly collection: null;
598
+ }, {
599
+ readonly prefix: "cex";
600
+ readonly entity: "ContainerExecution";
601
+ readonly service: "platform";
602
+ readonly collection: null;
603
+ }, {
604
+ readonly prefix: "vmnt";
605
+ readonly entity: "VolumeMount";
606
+ readonly service: "platform";
607
+ readonly collection: null;
608
+ }, {
609
+ readonly prefix: "wksp";
610
+ readonly entity: "Workspace";
611
+ readonly service: "platform";
612
+ readonly collection: null;
613
+ }, {
614
+ readonly prefix: "mdt";
615
+ readonly entity: "MobileDeviceTest";
616
+ readonly service: "platform";
617
+ readonly collection: null;
618
+ }, {
619
+ readonly prefix: "mdev";
620
+ readonly entity: "MobileDevice";
621
+ readonly service: "platform";
622
+ readonly collection: null;
623
+ }, {
624
+ readonly prefix: "cbt";
625
+ readonly entity: "CallbackTarget";
626
+ readonly service: "platform";
627
+ readonly collection: null;
628
+ }, {
629
+ readonly prefix: "dvs";
630
+ readonly entity: "DeviceSession";
631
+ readonly service: "platform";
632
+ readonly collection: null;
633
+ }, {
634
+ readonly prefix: "res";
635
+ readonly entity: "ManagedResource";
636
+ readonly service: "platform";
637
+ readonly collection: null;
638
+ }, {
639
+ readonly prefix: "dbbr";
640
+ readonly entity: "BranchDatabase";
641
+ readonly service: "platform";
642
+ readonly collection: null;
643
+ }, {
644
+ readonly prefix: "rstr";
645
+ readonly entity: "RestoreOperation";
646
+ readonly service: "platform";
647
+ readonly collection: null;
648
+ }, {
649
+ readonly prefix: "prx";
650
+ readonly entity: "Proxy";
651
+ readonly service: "platform";
652
+ readonly collection: null;
653
+ }, {
654
+ readonly prefix: "prule";
655
+ readonly entity: "ProxyRule";
656
+ readonly service: "platform";
657
+ readonly collection: null;
658
+ }, {
659
+ readonly prefix: "wrk";
660
+ readonly entity: "Worker";
661
+ readonly service: "platform";
662
+ readonly collection: null;
663
+ }, {
664
+ readonly prefix: "exp";
665
+ readonly entity: "Experiment";
666
+ readonly service: "platform";
667
+ readonly collection: null;
668
+ }, {
669
+ readonly prefix: "ntf";
670
+ readonly entity: "Notification";
671
+ readonly service: "platform";
672
+ readonly collection: null;
673
+ }, {
674
+ readonly prefix: "disp";
675
+ readonly entity: "Dispatch";
676
+ readonly service: "platform";
677
+ readonly collection: null;
678
+ }, {
679
+ readonly prefix: "tdef";
680
+ readonly entity: "TaskDefinition";
681
+ readonly service: "platform";
682
+ readonly collection: null;
683
+ }, {
684
+ readonly prefix: "alrt";
685
+ readonly entity: "Alert";
686
+ readonly service: "platform";
687
+ readonly collection: null;
688
+ }, {
689
+ readonly prefix: "doc";
690
+ readonly entity: "Document";
691
+ readonly service: "platform";
692
+ readonly collection: null;
693
+ }, {
694
+ readonly prefix: "file";
695
+ readonly entity: "File";
696
+ readonly service: "platform";
697
+ readonly collection: null;
698
+ }, {
699
+ readonly prefix: "pseg";
700
+ readonly entity: "PushSegment";
701
+ readonly service: "platform";
702
+ readonly collection: null;
703
+ }, {
704
+ readonly prefix: "pcam";
705
+ readonly entity: "PushCampaign";
706
+ readonly service: "platform";
707
+ readonly collection: null;
708
+ }, {
709
+ readonly prefix: "pdly";
710
+ readonly entity: "PushDelivery";
711
+ readonly service: "platform";
712
+ readonly collection: null;
713
+ }, {
714
+ readonly prefix: "fver";
715
+ readonly entity: "FileVersion";
716
+ readonly service: "platform";
717
+ readonly collection: null;
718
+ }, {
719
+ readonly prefix: "achv";
720
+ readonly entity: "Achievement";
721
+ readonly service: "platform";
722
+ readonly collection: null;
723
+ }, {
724
+ readonly prefix: "ldb";
725
+ readonly entity: "Leaderboard";
726
+ readonly service: "platform";
727
+ readonly collection: null;
728
+ }, {
729
+ readonly prefix: "coh";
730
+ readonly entity: "Cohort";
731
+ readonly service: "platform";
732
+ readonly collection: null;
733
+ }, {
734
+ readonly prefix: "adst";
735
+ readonly entity: "AnalyticsDestination";
736
+ readonly service: "platform";
737
+ readonly collection: null;
738
+ }, {
739
+ readonly prefix: "dlg";
740
+ readonly entity: "DestinationLog";
741
+ readonly service: "platform";
742
+ readonly collection: null;
743
+ }, {
744
+ readonly prefix: "ref";
745
+ readonly entity: "Referral";
746
+ readonly service: "platform";
747
+ readonly collection: null;
748
+ }, {
749
+ readonly prefix: "promo";
750
+ readonly entity: "PromoCode";
751
+ readonly service: "platform";
752
+ readonly collection: null;
753
+ }, {
754
+ readonly prefix: "nsub";
755
+ readonly entity: "NewsletterSubscriber";
756
+ readonly service: "platform";
757
+ readonly collection: null;
758
+ }, {
759
+ readonly prefix: "nseq";
760
+ readonly entity: "NewsletterSequence";
761
+ readonly service: "platform";
762
+ readonly collection: null;
763
+ }, {
764
+ readonly prefix: "nst";
765
+ readonly entity: "NewsletterStep";
766
+ readonly service: "platform";
767
+ readonly collection: null;
768
+ }, {
769
+ readonly prefix: "idp";
770
+ readonly entity: "SamlProvider";
771
+ readonly service: "platform";
772
+ readonly collection: null;
773
+ }, {
774
+ readonly prefix: "slog";
775
+ readonly entity: "SamlLog";
776
+ readonly service: "platform";
777
+ readonly collection: null;
778
+ }, {
779
+ readonly prefix: "cfg";
780
+ readonly entity: "ConfigFile";
781
+ readonly service: "platform";
782
+ readonly collection: null;
783
+ }, {
784
+ readonly prefix: "bnd";
785
+ readonly entity: "Binding";
786
+ readonly service: "platform";
787
+ readonly collection: null;
788
+ }, {
789
+ readonly prefix: "audt";
790
+ readonly entity: "AuditLog";
791
+ readonly service: "platform";
792
+ readonly collection: null;
793
+ }, {
794
+ readonly prefix: "perm";
795
+ readonly entity: "Permission";
796
+ readonly service: "platform";
797
+ readonly collection: null;
798
+ }, {
799
+ readonly prefix: "role";
800
+ readonly entity: "Role";
801
+ readonly service: "platform";
802
+ readonly collection: null;
803
+ }, {
804
+ readonly prefix: "sa";
805
+ readonly entity: "ServiceAccount";
806
+ readonly service: "platform";
807
+ readonly collection: null;
808
+ }, {
809
+ readonly prefix: "req";
810
+ readonly entity: "Request";
811
+ readonly service: "platform";
812
+ readonly collection: null;
813
+ }, {
814
+ readonly prefix: "cat";
815
+ readonly entity: "PriceCatalog";
816
+ readonly service: "money";
817
+ readonly collection: "price_catalogs";
818
+ }, {
819
+ readonly prefix: "cks";
820
+ readonly entity: "CheckoutSession";
821
+ readonly service: "money";
822
+ readonly collection: "checkout_sessions";
823
+ }, {
824
+ readonly prefix: "cpl";
825
+ readonly entity: "CheckoutPolicy";
826
+ readonly service: "money";
827
+ readonly collection: "checkout_policies";
828
+ }, {
829
+ readonly prefix: "csub";
830
+ readonly entity: "CustomerSubscription";
831
+ readonly service: "money";
832
+ readonly collection: "customer_subscriptions";
833
+ }, {
834
+ readonly prefix: "egnt";
835
+ readonly entity: "EntitlementGrant";
836
+ readonly service: "money";
837
+ readonly collection: "entitlement_grants";
838
+ }, {
839
+ readonly prefix: "lkey";
840
+ readonly entity: "LicenceKey";
841
+ readonly service: "money";
842
+ readonly collection: "licence_keys";
843
+ }, {
844
+ readonly prefix: "ltok";
845
+ readonly entity: "LicenceToken";
846
+ readonly service: "money";
847
+ readonly collection: "licence_tokens";
848
+ }, {
849
+ readonly prefix: "rvs";
850
+ readonly entity: "RevenueSource";
851
+ readonly service: "money";
852
+ readonly collection: "revenue_sources";
853
+ }, {
854
+ readonly prefix: "rvf";
855
+ readonly entity: "RevenueFact";
856
+ readonly service: "money";
857
+ readonly collection: "revenue_facts";
858
+ }, {
859
+ readonly prefix: "rvsum";
860
+ readonly entity: "RevenueSummary";
861
+ readonly service: "money";
862
+ readonly collection: "revenue";
863
+ }, {
864
+ readonly prefix: "fxr";
865
+ readonly entity: "ExchangeRate";
866
+ readonly service: "money";
867
+ readonly collection: "exchange_rates";
868
+ }, {
869
+ readonly prefix: "mact";
870
+ readonly entity: "MerchantAccount";
871
+ readonly service: "money";
872
+ readonly collection: "merchant_accounts";
873
+ }, {
874
+ readonly prefix: "psn";
875
+ readonly entity: "PortalSession";
876
+ readonly service: "money";
877
+ readonly collection: "portal_sessions";
878
+ }, {
879
+ readonly prefix: "scn";
880
+ readonly entity: "StoreConnection";
881
+ readonly service: "money";
882
+ readonly collection: "store_connections";
883
+ }, {
884
+ readonly prefix: "spu";
885
+ readonly entity: "StorePurchase";
886
+ readonly service: "money";
887
+ readonly collection: "store_purchases";
888
+ }, {
889
+ readonly prefix: "ures";
890
+ readonly entity: "UsageReservation";
891
+ readonly service: "money";
892
+ readonly collection: "usage_reservations";
893
+ }, {
894
+ readonly prefix: "uevt";
895
+ readonly entity: "UsageEvent";
896
+ readonly service: "money";
897
+ readonly collection: "usage_events";
898
+ }, {
899
+ readonly prefix: "cgrt";
900
+ readonly entity: "CreditGrant";
901
+ readonly service: "money";
902
+ readonly collection: "credit_grants";
903
+ }, {
904
+ readonly prefix: "uinv";
905
+ readonly entity: "UsageInvoice";
906
+ readonly service: "money";
907
+ readonly collection: "usage_invoices";
908
+ }, {
909
+ readonly prefix: "uset";
910
+ readonly entity: "UsageSettings";
911
+ readonly service: "money";
912
+ readonly collection: "usage_settings";
913
+ }, {
914
+ readonly prefix: "utier";
915
+ readonly entity: "UsageTier";
916
+ readonly service: "money";
917
+ readonly collection: "usage_tiers";
918
+ }, {
919
+ readonly prefix: "umtr";
920
+ readonly entity: "UsageMeter";
921
+ readonly service: "money";
922
+ readonly collection: "usage_meters";
923
+ }, {
924
+ readonly prefix: "umpr";
925
+ readonly entity: "UsageMeterPrice";
926
+ readonly service: "money";
927
+ readonly collection: "usage_meter_prices";
928
+ }, {
929
+ readonly prefix: "spc";
930
+ readonly entity: "Space";
931
+ readonly service: "knowledge";
932
+ readonly collection: "spaces";
933
+ }, {
934
+ readonly prefix: "epi";
935
+ readonly entity: "Episode";
936
+ readonly service: "knowledge";
937
+ readonly collection: "episodes";
938
+ }, {
939
+ readonly prefix: "ken";
940
+ readonly entity: "Entity";
941
+ readonly service: "knowledge";
942
+ readonly collection: "entities";
943
+ }, {
944
+ readonly prefix: "krel";
945
+ readonly entity: "Relation";
946
+ readonly service: "knowledge";
947
+ readonly collection: "relations";
948
+ }, {
949
+ readonly prefix: "ksch";
950
+ readonly entity: "KnowledgeSchema";
951
+ readonly service: "knowledge";
952
+ readonly collection: "knowledge_schemas";
953
+ }];
954
+ /** A registered prefix, for example `'prj'`. */
955
+ export type Prefix = (typeof PREFIXES)[number]['prefix'];
956
+ /** Why a string is not an id of the expected kind. */
957
+ export declare class IdError extends Error {
958
+ readonly code: 'malformed' | 'unknown_prefix' | 'wrong_prefix' | 'invalid_suffix';
959
+ constructor(code: IdError['code'], message: string);
960
+ }
961
+ /** A TypeID: a registered prefix over a 128-bit value. */
962
+ export declare class TypeId {
963
+ readonly prefix: Prefix;
964
+ private readonly value;
965
+ private constructor();
966
+ /** The id of an existing 128-bit value, for example a `uuid` column. */
967
+ static fromUuid(prefix: Prefix, uuid: string): TypeId;
968
+ /** @internal */
969
+ static fromValue(prefix: Prefix, value: bigint): TypeId;
970
+ /** The 128 bits as a lowercase hyphenated UUID, as stored in the owning service's `uuid` column. */
971
+ uuid(): string;
972
+ /** The name another system needs where `_` is not legal (a DNS label, a Kubernetes name): `<prefix>-<26 characters>`. */
973
+ dnsForm(): string;
974
+ toString(): string;
975
+ toJSON(): string;
976
+ equals(other: TypeId): boolean;
977
+ }
978
+ /** A new id with a fresh UUIDv7. */
979
+ export declare function mint(prefix: Prefix): TypeId;
980
+ /**
981
+ * Parses an id of any registered prefix. Exactly one form is accepted: a
982
+ * lowercase TypeID. A raw UUID, hex, an uppercase id, a DNS form or a retired
983
+ * form throws an `IdError`.
984
+ */
985
+ export declare function parse(s: string): TypeId;
986
+ /** Parses an id that must carry `prefix`. */
987
+ export declare function validate(prefix: Prefix, s: string): TypeId;