@spacefast/common 0.0.3 → 0.0.6
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.
- package/dist/agents/connect-targets.d.ts +133 -0
- package/dist/agents/connect-targets.js +224 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +5 -0
- package/dist/config/domains.d.ts +12 -6
- package/dist/config/domains.js +30 -38
- package/dist/contracts/access.d.ts +829 -129
- package/dist/contracts/access.js +771 -148
- package/dist/contracts/activity.d.ts +5 -5
- package/dist/contracts/activity.js +28 -2
- package/dist/contracts/annotations.d.ts +3 -5
- package/dist/contracts/api-keys.d.ts +9 -10
- package/dist/contracts/api-keys.js +9 -6
- package/dist/contracts/archives.d.ts +22 -16
- package/dist/contracts/archives.js +11 -4
- package/dist/contracts/billing.d.ts +21 -30
- package/dist/contracts/builds.d.ts +21 -17
- package/dist/contracts/builds.js +12 -0
- package/dist/contracts/channels.d.ts +2 -2
- package/dist/contracts/common.d.ts +7 -5
- package/dist/contracts/common.js +4 -0
- package/dist/contracts/continuation.d.ts +63 -0
- package/dist/contracts/continuation.js +91 -0
- package/dist/contracts/countries.d.ts +2 -0
- package/dist/contracts/countries.js +261 -0
- package/dist/contracts/deployments.d.ts +34 -34
- package/dist/contracts/device-auth.d.ts +4 -11
- package/dist/contracts/device-auth.js +4 -0
- package/dist/contracts/docs.d.ts +119 -0
- package/dist/contracts/docs.js +51 -0
- package/dist/contracts/domains.d.ts +295 -253
- package/dist/contracts/domains.js +26 -4
- package/dist/contracts/enums.d.ts +17 -18
- package/dist/contracts/enums.js +25 -14
- package/dist/contracts/error-code-meta.d.ts +84 -0
- package/dist/contracts/error-code-meta.js +99 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +17 -0
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/features.d.ts +93 -23
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/git.d.ts +3 -9
- package/dist/contracts/ids.d.ts +5 -0
- package/dist/contracts/ids.js +5 -0
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +34 -36
- package/dist/contracts/me.d.ts +8 -8
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +19 -8
- package/dist/contracts/oauth-resources.js +44 -13
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/plan-policy.d.ts +4 -4
- package/dist/contracts/platform.d.ts +3 -105
- package/dist/contracts/platform.js +0 -50
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.d.ts +2 -0
- package/dist/contracts/quotas.js +8 -0
- package/dist/contracts/repository-connections.d.ts +1 -3
- package/dist/contracts/resources.d.ts +112 -28
- package/dist/contracts/resources.js +26 -2
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +365 -43
- package/dist/contracts/runtime-api.js +275 -6
- package/dist/contracts/sites.d.ts +45 -28
- package/dist/contracts/sites.js +21 -0
- package/dist/contracts/space-config.d.ts +201 -2
- package/dist/contracts/space-config.js +135 -5
- package/dist/contracts/spaces.d.ts +423 -162
- package/dist/contracts/spaces.js +94 -8
- package/dist/contracts/superadmin-emails.d.ts +7 -5
- package/dist/contracts/superadmin-emails.js +8 -0
- package/dist/contracts/superadmin-queues.d.ts +32 -32
- package/dist/contracts/superadmin-spaces.d.ts +418 -24
- package/dist/contracts/superadmin-spaces.js +24 -0
- package/dist/contracts/superadmin-tenants.d.ts +8 -8
- package/dist/contracts/superadmin.d.ts +17 -104
- package/dist/contracts/superadmin.js +6 -14
- package/dist/contracts/tags.d.ts +42 -41
- package/dist/contracts/tags.js +2 -1
- package/dist/contracts/teams.d.ts +40 -23
- package/dist/contracts/teams.js +20 -1
- package/dist/contracts/theme-json.d.ts +30 -0
- package/dist/contracts/theme-json.js +48 -0
- package/dist/contracts/transfers.d.ts +9 -9
- package/dist/contracts/variables.d.ts +14 -16
- package/dist/contracts/variables.js +0 -5
- package/dist/contracts/webhooks.d.ts +6 -4
- package/dist/contracts/webhooks.js +1 -1
- package/dist/contracts/zero.d.ts +13 -18
- package/dist/docs/agent-prose.d.ts +43 -3
- package/dist/docs/agent-prose.js +153 -10
- package/dist/docs/agent-setup.js +48 -15
- package/dist/docs/agent-solutions.d.ts +5 -5
- package/dist/docs/agent-solutions.js +2 -2
- package/dist/docs/catalog.d.ts +650 -0
- package/dist/docs/catalog.js +758 -0
- package/dist/docs/error-docs.d.ts +0 -2
- package/dist/docs/error-docs.js +89 -35
- package/dist/docs/index-build.d.ts +17 -0
- package/dist/docs/index-build.js +24 -0
- package/dist/docs/search.d.ts +54 -0
- package/dist/docs/search.js +96 -0
- package/dist/docs/skill-distribution.d.ts +5 -3
- package/dist/docs/skill-distribution.js +8 -8
- package/dist/utils/access-match.d.ts +39 -0
- package/dist/utils/access-match.js +296 -0
- package/dist/utils/auth-redirect.d.ts +3 -1
- package/dist/utils/auth-redirect.js +21 -1
- package/dist/utils/build-settings.d.ts +6 -0
- package/dist/utils/build-settings.js +429 -46
- package/dist/utils/claim-token.d.ts +8 -0
- package/dist/utils/claim-token.js +23 -2
- package/dist/utils/content-type.d.ts +1 -0
- package/dist/utils/content-type.js +1 -1
- package/dist/utils/credential-policy.d.ts +54 -0
- package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
- package/dist/utils/gate-theme.d.ts +61 -0
- package/dist/utils/gate-theme.js +217 -0
- package/dist/utils/git-repository.d.ts +0 -1
- package/dist/utils/git-repository.js +0 -3
- package/dist/utils/id-hints.d.ts +8 -0
- package/dist/utils/id-hints.js +61 -0
- package/dist/utils/local-space-state.d.ts +91 -0
- package/dist/utils/local-space-state.js +251 -0
- package/dist/utils/oauth-signed-query.d.ts +8 -0
- package/dist/utils/oauth-signed-query.js +26 -0
- package/dist/utils/publish-detection.d.ts +0 -8
- package/dist/utils/publish-detection.js +0 -93
- package/dist/utils/publish-policy.d.ts +6 -5
- package/dist/utils/publish-policy.js +71 -7
- package/dist/utils/query-keys.d.ts +17 -6
- package/dist/utils/query-keys.js +27 -4
- package/dist/utils/runtime-paths.d.ts +0 -1
- package/dist/utils/runtime-paths.js +0 -1
- package/dist/utils/runtime-upload-batch.d.ts +18 -0
- package/dist/utils/runtime-upload-batch.js +90 -0
- package/dist/utils/runtime-upload.d.ts +2 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +4 -0
- package/dist/utils/space-config.js +10 -1
- package/dist/utils/space-theme.d.ts +2 -0
- package/dist/utils/space-theme.js +9 -0
- package/dist/utils/static-runtime-policy.d.ts +1 -1
- package/dist/utils/static-runtime-policy.js +47 -15
- package/dist/utils/upload-session.d.ts +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
- package/dist/utils/wpcom-auth-redirects.js +26 -10
- package/dist/vocabulary.d.ts +130 -30
- package/dist/vocabulary.js +77 -36
- package/package.json +16 -1
- package/dist/contracts/account.d.ts +0 -28
- package/dist/contracts/account.js +0 -54
- package/dist/contracts/intercom.d.ts +0 -6
- package/dist/contracts/intercom.js +0 -5
- package/dist/contracts/telemetry.d.ts +0 -2
- package/dist/contracts/telemetry.js +0 -1
- package/dist/utils/access-policy.d.ts +0 -39
- package/dist/utils/error-display.d.ts +0 -7
- package/dist/utils/error-display.js +0 -42
|
@@ -122,28 +122,21 @@ export declare const SuperadminUserListSchema: z.ZodObject<{
|
|
|
122
122
|
prev: z.ZodNullable<z.ZodNumber>;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
124
|
}, z.core.$strip>;
|
|
125
|
-
export declare const superadminUserRoleUpdateSchema: z.ZodObject<{
|
|
126
|
-
role: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
export declare const superadminUserBanSchema: z.ZodObject<{
|
|
129
|
-
banReason: z.ZodOptional<z.ZodString>;
|
|
130
|
-
banExpiresInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
125
|
export declare const superadminBuildInventoryQuerySchema: z.ZodObject<{
|
|
133
126
|
status: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
134
127
|
failed: "failed";
|
|
135
|
-
queued: "queued";
|
|
136
|
-
running: "running";
|
|
137
|
-
succeeded: "succeeded";
|
|
138
128
|
canceled: "canceled";
|
|
139
129
|
waiting_for_source: "waiting_for_source";
|
|
140
130
|
uploading_source: "uploading_source";
|
|
131
|
+
queued: "queued";
|
|
132
|
+
running: "running";
|
|
133
|
+
succeeded: "succeeded";
|
|
141
134
|
skipped: "skipped";
|
|
142
135
|
}>]>>;
|
|
143
136
|
driver: z.ZodDefault<z.ZodEnum<{
|
|
137
|
+
local: "local";
|
|
144
138
|
all: "all";
|
|
145
139
|
e2b: "e2b";
|
|
146
|
-
local: "local";
|
|
147
140
|
}>>;
|
|
148
141
|
repository: z.ZodOptional<z.ZodString>;
|
|
149
142
|
}, z.core.$strip>;
|
|
@@ -220,10 +213,10 @@ export declare const SuperadminBuildInventorySchema: z.ZodObject<{
|
|
|
220
213
|
export declare const superadminPlanGrantCreateSchema: z.ZodObject<{
|
|
221
214
|
team: z.ZodString;
|
|
222
215
|
plan: z.ZodEnum<{
|
|
223
|
-
|
|
216
|
+
internal: "internal";
|
|
224
217
|
work: "work";
|
|
218
|
+
personal: "personal";
|
|
225
219
|
enterprise: "enterprise";
|
|
226
|
-
internal: "internal";
|
|
227
220
|
}>;
|
|
228
221
|
note: z.ZodOptional<z.ZodString>;
|
|
229
222
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
@@ -310,36 +303,6 @@ export declare const superadminAddonListQuerySchema: z.ZodObject<{
|
|
|
310
303
|
team: z.ZodOptional<z.ZodString>;
|
|
311
304
|
includeInactive: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
|
|
312
305
|
}, z.core.$strip>;
|
|
313
|
-
export declare const SuperadminAddonListSchema: z.ZodObject<{
|
|
314
|
-
addons: z.ZodArray<z.ZodObject<{
|
|
315
|
-
id: z.ZodString;
|
|
316
|
-
teamId: z.ZodString;
|
|
317
|
-
teamSlug: z.ZodNullable<z.ZodString>;
|
|
318
|
-
teamName: z.ZodNullable<z.ZodString>;
|
|
319
|
-
limitKey: z.ZodString;
|
|
320
|
-
amount: z.ZodNumber;
|
|
321
|
-
quantity: z.ZodNumber;
|
|
322
|
-
source: z.ZodEnum<{
|
|
323
|
-
grant: "grant";
|
|
324
|
-
stripe: "stripe";
|
|
325
|
-
}>;
|
|
326
|
-
reference: z.ZodNullable<z.ZodString>;
|
|
327
|
-
note: z.ZodNullable<z.ZodString>;
|
|
328
|
-
grantedBy: z.ZodNullable<z.ZodString>;
|
|
329
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
330
|
-
revokedAt: z.ZodNullable<z.ZodString>;
|
|
331
|
-
active: z.ZodBoolean;
|
|
332
|
-
createdAt: z.ZodString;
|
|
333
|
-
}, z.core.$strip>>;
|
|
334
|
-
total: z.ZodNumber;
|
|
335
|
-
limit: z.ZodNumber;
|
|
336
|
-
offset: z.ZodNumber;
|
|
337
|
-
pagination: z.ZodObject<{
|
|
338
|
-
count: z.ZodNumber;
|
|
339
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
340
|
-
prev: z.ZodNullable<z.ZodNumber>;
|
|
341
|
-
}, z.core.$strip>;
|
|
342
|
-
}, z.core.$strip>;
|
|
343
306
|
export declare const SuperadminBillingTransactionSchema: z.ZodObject<{
|
|
344
307
|
id: z.ZodString;
|
|
345
308
|
teamId: z.ZodNullable<z.ZodString>;
|
|
@@ -357,8 +320,8 @@ export declare const SuperadminBillingTransactionSchema: z.ZodObject<{
|
|
|
357
320
|
adjustment: "adjustment";
|
|
358
321
|
}>;
|
|
359
322
|
scope: z.ZodEnum<{
|
|
360
|
-
other: "other";
|
|
361
323
|
domain: "domain";
|
|
324
|
+
other: "other";
|
|
362
325
|
plan: "plan";
|
|
363
326
|
seats: "seats";
|
|
364
327
|
}>;
|
|
@@ -378,49 +341,6 @@ export declare const superadminBillingTransactionListQuerySchema: z.ZodObject<{
|
|
|
378
341
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
379
342
|
team: z.ZodOptional<z.ZodString>;
|
|
380
343
|
}, z.core.$strip>;
|
|
381
|
-
export declare const SuperadminBillingTransactionListSchema: z.ZodObject<{
|
|
382
|
-
transactions: z.ZodArray<z.ZodObject<{
|
|
383
|
-
id: z.ZodString;
|
|
384
|
-
teamId: z.ZodNullable<z.ZodString>;
|
|
385
|
-
teamSlug: z.ZodNullable<z.ZodString>;
|
|
386
|
-
teamName: z.ZodNullable<z.ZodString>;
|
|
387
|
-
provider: z.ZodEnum<{
|
|
388
|
-
stripe: "stripe";
|
|
389
|
-
app_store: "app_store";
|
|
390
|
-
google_play: "google_play";
|
|
391
|
-
}>;
|
|
392
|
-
kind: z.ZodEnum<{
|
|
393
|
-
purchase: "purchase";
|
|
394
|
-
renewal: "renewal";
|
|
395
|
-
refund: "refund";
|
|
396
|
-
adjustment: "adjustment";
|
|
397
|
-
}>;
|
|
398
|
-
scope: z.ZodEnum<{
|
|
399
|
-
other: "other";
|
|
400
|
-
domain: "domain";
|
|
401
|
-
plan: "plan";
|
|
402
|
-
seats: "seats";
|
|
403
|
-
}>;
|
|
404
|
-
planCode: z.ZodNullable<z.ZodString>;
|
|
405
|
-
productId: z.ZodNullable<z.ZodString>;
|
|
406
|
-
providerReference: z.ZodString;
|
|
407
|
-
amountMicros: z.ZodNullable<z.ZodNumber>;
|
|
408
|
-
currency: z.ZodNullable<z.ZodString>;
|
|
409
|
-
offerId: z.ZodNullable<z.ZodString>;
|
|
410
|
-
offerType: z.ZodNullable<z.ZodString>;
|
|
411
|
-
discountAmountMicros: z.ZodNullable<z.ZodNumber>;
|
|
412
|
-
occurredAt: z.ZodNullable<z.ZodString>;
|
|
413
|
-
createdAt: z.ZodString;
|
|
414
|
-
}, z.core.$strip>>;
|
|
415
|
-
total: z.ZodNumber;
|
|
416
|
-
limit: z.ZodNumber;
|
|
417
|
-
offset: z.ZodNumber;
|
|
418
|
-
pagination: z.ZodObject<{
|
|
419
|
-
count: z.ZodNumber;
|
|
420
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
421
|
-
prev: z.ZodNullable<z.ZodNumber>;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
}, z.core.$strip>;
|
|
424
344
|
export declare const SuperadminTeamBillingOverviewSchema: z.ZodObject<{
|
|
425
345
|
team: z.ZodObject<{
|
|
426
346
|
id: z.ZodString;
|
|
@@ -446,8 +366,10 @@ export declare const SuperadminWpCloudSiteSchema: z.ZodObject<{
|
|
|
446
366
|
providerSiteId: z.ZodString;
|
|
447
367
|
placementId: z.ZodNullable<z.ZodString>;
|
|
448
368
|
placementKind: z.ZodNullable<z.ZodEnum<{
|
|
449
|
-
|
|
369
|
+
shared: "shared";
|
|
370
|
+
dedicated: "dedicated";
|
|
450
371
|
shared_org: "shared_org";
|
|
372
|
+
anonymous_pool: "anonymous_pool";
|
|
451
373
|
dedicated_space: "dedicated_space";
|
|
452
374
|
}>>;
|
|
453
375
|
placementState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -459,8 +381,8 @@ export declare const SuperadminWpCloudSiteSchema: z.ZodObject<{
|
|
|
459
381
|
anonymousPoolId: z.ZodNullable<z.ZodString>;
|
|
460
382
|
anonymousPoolState: z.ZodNullable<z.ZodEnum<{
|
|
461
383
|
active: "active";
|
|
462
|
-
draining: "draining";
|
|
463
384
|
disabled: "disabled";
|
|
385
|
+
draining: "draining";
|
|
464
386
|
}>>;
|
|
465
387
|
anonymousPoolAssignedSpaceCount: z.ZodNullable<z.ZodNumber>;
|
|
466
388
|
assignedSpaceCount: z.ZodNumber;
|
|
@@ -511,8 +433,10 @@ export declare const SuperadminWpCloudSiteListSchema: z.ZodObject<{
|
|
|
511
433
|
providerSiteId: z.ZodString;
|
|
512
434
|
placementId: z.ZodNullable<z.ZodString>;
|
|
513
435
|
placementKind: z.ZodNullable<z.ZodEnum<{
|
|
514
|
-
|
|
436
|
+
shared: "shared";
|
|
437
|
+
dedicated: "dedicated";
|
|
515
438
|
shared_org: "shared_org";
|
|
439
|
+
anonymous_pool: "anonymous_pool";
|
|
516
440
|
dedicated_space: "dedicated_space";
|
|
517
441
|
}>>;
|
|
518
442
|
placementState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -524,8 +448,8 @@ export declare const SuperadminWpCloudSiteListSchema: z.ZodObject<{
|
|
|
524
448
|
anonymousPoolId: z.ZodNullable<z.ZodString>;
|
|
525
449
|
anonymousPoolState: z.ZodNullable<z.ZodEnum<{
|
|
526
450
|
active: "active";
|
|
527
|
-
draining: "draining";
|
|
528
451
|
disabled: "disabled";
|
|
452
|
+
draining: "draining";
|
|
529
453
|
}>>;
|
|
530
454
|
anonymousPoolAssignedSpaceCount: z.ZodNullable<z.ZodNumber>;
|
|
531
455
|
assignedSpaceCount: z.ZodNumber;
|
|
@@ -584,8 +508,8 @@ export declare const SuperadminAnonymousPoolSchema: z.ZodObject<{
|
|
|
584
508
|
geoAffinity: z.ZodNullable<z.ZodString>;
|
|
585
509
|
state: z.ZodEnum<{
|
|
586
510
|
active: "active";
|
|
587
|
-
draining: "draining";
|
|
588
511
|
disabled: "disabled";
|
|
512
|
+
draining: "draining";
|
|
589
513
|
}>;
|
|
590
514
|
assignedSpaceCount: z.ZodNumber;
|
|
591
515
|
createdAt: z.ZodString;
|
|
@@ -615,8 +539,8 @@ export declare const SuperadminAnonymousPoolListSchema: z.ZodObject<{
|
|
|
615
539
|
geoAffinity: z.ZodNullable<z.ZodString>;
|
|
616
540
|
state: z.ZodEnum<{
|
|
617
541
|
active: "active";
|
|
618
|
-
draining: "draining";
|
|
619
542
|
disabled: "disabled";
|
|
543
|
+
draining: "draining";
|
|
620
544
|
}>;
|
|
621
545
|
assignedSpaceCount: z.ZodNumber;
|
|
622
546
|
createdAt: z.ZodString;
|
|
@@ -639,16 +563,5 @@ export declare const SuperadminAnonymousPoolListSchema: z.ZodObject<{
|
|
|
639
563
|
assignedSpaces: z.ZodNumber;
|
|
640
564
|
}, z.core.$strip>;
|
|
641
565
|
}, z.core.$strip>;
|
|
642
|
-
export declare const superadminWpCloudAssignSchema: z.ZodObject<{
|
|
643
|
-
spaceId: z.ZodString;
|
|
644
|
-
}, z.core.$strip>;
|
|
645
|
-
export type SuperadminAccess = z.infer<typeof SuperadminAccessSchema>;
|
|
646
566
|
export type SuperadminUser = z.infer<typeof SuperadminUserSchema>;
|
|
647
567
|
export type SuperadminUserList = z.infer<typeof SuperadminUserListSchema>;
|
|
648
|
-
export type SuperadminPlanGrant = z.infer<typeof SuperadminPlanGrantSchema>;
|
|
649
|
-
export type SuperadminAddon = z.infer<typeof SuperadminAddonSchema>;
|
|
650
|
-
export type SuperadminBillingTransaction = z.infer<typeof SuperadminBillingTransactionSchema>;
|
|
651
|
-
export type SuperadminPlanGrantList = z.infer<typeof SuperadminPlanGrantListSchema>;
|
|
652
|
-
export type SuperadminTeamBillingOverview = z.infer<typeof SuperadminTeamBillingOverviewSchema>;
|
|
653
|
-
export type SuperadminWpCloudSiteList = z.infer<typeof SuperadminWpCloudSiteListSchema>;
|
|
654
|
-
export type SuperadminAnonymousPoolList = z.infer<typeof SuperadminAnonymousPoolListSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { makeOffsetListSchema } from "./common.js";
|
|
3
|
-
import { buildStatus } from "./enums.js";
|
|
3
|
+
import { buildStatus, siteClass } from "./enums.js";
|
|
4
4
|
// Operator-only offset pagination. The platform API uses opaque cursors exclusively
|
|
5
5
|
// (contracts/common.ts); the superadmin surface is the one sanctioned exception.
|
|
6
6
|
export const superadminPaginationSchema = z.object({
|
|
@@ -57,13 +57,6 @@ export const superadminUserListQuerySchema = z.object({
|
|
|
57
57
|
search: z.string().trim().optional(),
|
|
58
58
|
});
|
|
59
59
|
export const SuperadminUserListSchema = makeOffsetListSchema("users", SuperadminUserSchema, superadminPaginationSchema);
|
|
60
|
-
export const superadminUserRoleUpdateSchema = z.object({
|
|
61
|
-
role: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]),
|
|
62
|
-
});
|
|
63
|
-
export const superadminUserBanSchema = z.object({
|
|
64
|
-
banReason: z.string().trim().optional(),
|
|
65
|
-
banExpiresInSeconds: z.number().int().positive().optional(),
|
|
66
|
-
});
|
|
67
60
|
export const superadminBuildInventoryQuerySchema = z.object({
|
|
68
61
|
status: z.union([z.literal("all"), buildStatus]).default("all"),
|
|
69
62
|
driver: z.enum(["all", "e2b", "local"]).default("all"),
|
|
@@ -170,7 +163,6 @@ export const superadminAddonListQuerySchema = z.object({
|
|
|
170
163
|
team: z.string().trim().optional(),
|
|
171
164
|
includeInactive: z.coerce.boolean().default(false),
|
|
172
165
|
});
|
|
173
|
-
export const SuperadminAddonListSchema = makeOffsetListSchema("addons", SuperadminAddonSchema, superadminPaginationSchema);
|
|
174
166
|
// Transaction ledger rows: actual paid amounts in micros of `currency`,
|
|
175
167
|
// negative for refunds, with provider discount identifiers verbatim.
|
|
176
168
|
export const SuperadminBillingTransactionSchema = z.object({
|
|
@@ -197,7 +189,6 @@ export const superadminBillingTransactionListQuerySchema = z.object({
|
|
|
197
189
|
offset: z.coerce.number().int().min(0).default(0),
|
|
198
190
|
team: z.string().trim().optional(),
|
|
199
191
|
});
|
|
200
|
-
export const SuperadminBillingTransactionListSchema = makeOffsetListSchema("transactions", SuperadminBillingTransactionSchema, superadminPaginationSchema);
|
|
201
192
|
export const SuperadminTeamBillingOverviewSchema = z.object({
|
|
202
193
|
team: z.object({
|
|
203
194
|
id: z.string(),
|
|
@@ -217,7 +208,11 @@ export const SuperadminTeamBillingOverviewSchema = z.object({
|
|
|
217
208
|
export const SuperadminWpCloudSiteSchema = z.object({
|
|
218
209
|
providerSiteId: z.string(),
|
|
219
210
|
placementId: z.string().nullable(),
|
|
220
|
-
|
|
211
|
+
// Reuses `siteClass` (enums.ts) rather than a private legacy-only literal
|
|
212
|
+
// union — this echoes the site's raw placementMode column, which Deploy T
|
|
213
|
+
// still tolerates in both legacy (anonymous_pool/shared_org/dedicated_space)
|
|
214
|
+
// and normalized (shared/dedicated) form.
|
|
215
|
+
placementKind: siteClass.nullable(),
|
|
221
216
|
placementState: z.string().nullable().optional(),
|
|
222
217
|
placementStatus: z.string().nullable().optional(),
|
|
223
218
|
placementPrimaryHostname: z.string().nullable(),
|
|
@@ -304,6 +299,3 @@ export const SuperadminAnonymousPoolListSchema = z.object({
|
|
|
304
299
|
pools: z.array(SuperadminAnonymousPoolSchema),
|
|
305
300
|
summary: SuperadminAnonymousPoolSummarySchema,
|
|
306
301
|
});
|
|
307
|
-
export const superadminWpCloudAssignSchema = z.object({
|
|
308
|
-
spaceId: z.string().min(1),
|
|
309
|
-
});
|
package/dist/contracts/tags.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const tagVersionStatusSchema: z.ZodEnum<{
|
|
3
3
|
approved: "approved";
|
|
4
|
+
publishing: "publishing";
|
|
4
5
|
draft: "draft";
|
|
5
6
|
in_review: "in_review";
|
|
6
|
-
publishing: "publishing";
|
|
7
7
|
published: "published";
|
|
8
8
|
abandoned: "abandoned";
|
|
9
9
|
}>;
|
|
@@ -13,10 +13,10 @@ export declare const tagEnvironmentSchema: z.ZodEnum<{
|
|
|
13
13
|
development: "development";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const tagConsentCategorySchema: z.ZodEnum<{
|
|
16
|
-
necessary: "necessary";
|
|
17
|
-
functional: "functional";
|
|
18
16
|
analytics: "analytics";
|
|
19
17
|
marketing: "marketing";
|
|
18
|
+
necessary: "necessary";
|
|
19
|
+
functional: "functional";
|
|
20
20
|
personalization: "personalization";
|
|
21
21
|
}>;
|
|
22
22
|
export type TagConsentCategory = z.infer<typeof tagConsentCategorySchema>;
|
|
@@ -57,7 +57,7 @@ export declare const TAG_CONSENT_CATEGORY_DEFINITIONS: [{
|
|
|
57
57
|
readonly required: false;
|
|
58
58
|
readonly privacySignalDefaultDenied: true;
|
|
59
59
|
}];
|
|
60
|
-
export declare const TAG_CONSENT_CATEGORY_IDS: ("
|
|
60
|
+
export declare const TAG_CONSENT_CATEGORY_IDS: ("analytics" | "marketing" | "necessary" | "functional" | "personalization")[];
|
|
61
61
|
export declare const DEFAULT_TAG_CONSENT_DEFAULTS: Record<TagConsentCategory, boolean>;
|
|
62
62
|
export declare const tagConsentPolicySchema: z.ZodObject<{
|
|
63
63
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -87,9 +87,9 @@ export declare const tagConsentPolicySchema: z.ZodObject<{
|
|
|
87
87
|
message: z.ZodString;
|
|
88
88
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
89
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
90
|
+
registrar: "registrar";
|
|
90
91
|
wpcloud: "wpcloud";
|
|
91
92
|
dns: "dns";
|
|
92
|
-
registrar: "registrar";
|
|
93
93
|
runtime: "runtime";
|
|
94
94
|
}>>>;
|
|
95
95
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -122,9 +122,9 @@ export declare const tagValidationResultSchema: z.ZodObject<{
|
|
|
122
122
|
message: z.ZodString;
|
|
123
123
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
125
|
+
registrar: "registrar";
|
|
125
126
|
wpcloud: "wpcloud";
|
|
126
127
|
dns: "dns";
|
|
127
|
-
registrar: "registrar";
|
|
128
128
|
runtime: "runtime";
|
|
129
129
|
}>>>;
|
|
130
130
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -142,9 +142,9 @@ export declare const tagVersionSchema: z.ZodObject<{
|
|
|
142
142
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
143
143
|
status: z.ZodEnum<{
|
|
144
144
|
approved: "approved";
|
|
145
|
+
publishing: "publishing";
|
|
145
146
|
draft: "draft";
|
|
146
147
|
in_review: "in_review";
|
|
147
|
-
publishing: "publishing";
|
|
148
148
|
published: "published";
|
|
149
149
|
abandoned: "abandoned";
|
|
150
150
|
}>;
|
|
@@ -171,9 +171,9 @@ export declare const tagVersionSchema: z.ZodObject<{
|
|
|
171
171
|
message: z.ZodString;
|
|
172
172
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
173
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
174
|
+
registrar: "registrar";
|
|
174
175
|
wpcloud: "wpcloud";
|
|
175
176
|
dns: "dns";
|
|
176
|
-
registrar: "registrar";
|
|
177
177
|
runtime: "runtime";
|
|
178
178
|
}>>>;
|
|
179
179
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -197,9 +197,9 @@ export declare const tagVersionListQuerySchema: z.ZodObject<{
|
|
|
197
197
|
cursor: z.ZodOptional<z.ZodString>;
|
|
198
198
|
status: z.ZodOptional<z.ZodEnum<{
|
|
199
199
|
approved: "approved";
|
|
200
|
+
publishing: "publishing";
|
|
200
201
|
draft: "draft";
|
|
201
202
|
in_review: "in_review";
|
|
202
|
-
publishing: "publishing";
|
|
203
203
|
published: "published";
|
|
204
204
|
abandoned: "abandoned";
|
|
205
205
|
}>>;
|
|
@@ -212,9 +212,9 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
|
|
|
212
212
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
213
213
|
status: z.ZodEnum<{
|
|
214
214
|
approved: "approved";
|
|
215
|
+
publishing: "publishing";
|
|
215
216
|
draft: "draft";
|
|
216
217
|
in_review: "in_review";
|
|
217
|
-
publishing: "publishing";
|
|
218
218
|
published: "published";
|
|
219
219
|
abandoned: "abandoned";
|
|
220
220
|
}>;
|
|
@@ -241,9 +241,9 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
|
|
|
241
241
|
message: z.ZodString;
|
|
242
242
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
243
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
244
|
+
registrar: "registrar";
|
|
244
245
|
wpcloud: "wpcloud";
|
|
245
246
|
dns: "dns";
|
|
246
|
-
registrar: "registrar";
|
|
247
247
|
runtime: "runtime";
|
|
248
248
|
}>>>;
|
|
249
249
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -275,9 +275,9 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
|
|
|
275
275
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
276
276
|
status: z.ZodEnum<{
|
|
277
277
|
approved: "approved";
|
|
278
|
+
publishing: "publishing";
|
|
278
279
|
draft: "draft";
|
|
279
280
|
in_review: "in_review";
|
|
280
|
-
publishing: "publishing";
|
|
281
281
|
published: "published";
|
|
282
282
|
abandoned: "abandoned";
|
|
283
283
|
}>;
|
|
@@ -304,9 +304,9 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
|
|
|
304
304
|
message: z.ZodString;
|
|
305
305
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
306
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
307
|
+
registrar: "registrar";
|
|
307
308
|
wpcloud: "wpcloud";
|
|
308
309
|
dns: "dns";
|
|
309
|
-
registrar: "registrar";
|
|
310
310
|
runtime: "runtime";
|
|
311
311
|
}>>>;
|
|
312
312
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -399,9 +399,9 @@ export declare const tagValidateResponseSchema: z.ZodObject<{
|
|
|
399
399
|
message: z.ZodString;
|
|
400
400
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
401
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
402
|
+
registrar: "registrar";
|
|
402
403
|
wpcloud: "wpcloud";
|
|
403
404
|
dns: "dns";
|
|
404
|
-
registrar: "registrar";
|
|
405
405
|
runtime: "runtime";
|
|
406
406
|
}>>>;
|
|
407
407
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -483,8 +483,8 @@ export declare const tagReleaseResponseSchema: z.ZodObject<{
|
|
|
483
483
|
status: z.ZodEnum<{
|
|
484
484
|
failed: "failed";
|
|
485
485
|
ready: "ready";
|
|
486
|
-
compiling: "compiling";
|
|
487
486
|
superseded: "superseded";
|
|
487
|
+
compiling: "compiling";
|
|
488
488
|
}>;
|
|
489
489
|
}, z.core.$strip>>;
|
|
490
490
|
}, z.core.$strip>;
|
|
@@ -558,10 +558,10 @@ export declare const tagEffectiveTagResponseSchema: z.ZodObject<{
|
|
|
558
558
|
development: "development";
|
|
559
559
|
}>;
|
|
560
560
|
source: z.ZodEnum<{
|
|
561
|
+
space: "space";
|
|
562
|
+
team: "team";
|
|
561
563
|
unknown: "unknown";
|
|
562
564
|
system: "system";
|
|
563
|
-
team: "team";
|
|
564
|
-
space: "space";
|
|
565
565
|
}>;
|
|
566
566
|
}, z.core.$strip>;
|
|
567
567
|
}, z.core.$strip>;
|
|
@@ -591,9 +591,9 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
591
591
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
592
592
|
status: z.ZodEnum<{
|
|
593
593
|
approved: "approved";
|
|
594
|
+
publishing: "publishing";
|
|
594
595
|
draft: "draft";
|
|
595
596
|
in_review: "in_review";
|
|
596
|
-
publishing: "publishing";
|
|
597
597
|
published: "published";
|
|
598
598
|
abandoned: "abandoned";
|
|
599
599
|
}>;
|
|
@@ -620,9 +620,9 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
620
620
|
message: z.ZodString;
|
|
621
621
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
622
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
623
|
+
registrar: "registrar";
|
|
623
624
|
wpcloud: "wpcloud";
|
|
624
625
|
dns: "dns";
|
|
625
|
-
registrar: "registrar";
|
|
626
626
|
runtime: "runtime";
|
|
627
627
|
}>>>;
|
|
628
628
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -653,9 +653,9 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
653
653
|
message: z.ZodString;
|
|
654
654
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
655
655
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
656
|
+
registrar: "registrar";
|
|
656
657
|
wpcloud: "wpcloud";
|
|
657
658
|
dns: "dns";
|
|
658
|
-
registrar: "registrar";
|
|
659
659
|
runtime: "runtime";
|
|
660
660
|
}>>>;
|
|
661
661
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -685,8 +685,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
685
685
|
status: z.ZodEnum<{
|
|
686
686
|
failed: "failed";
|
|
687
687
|
ready: "ready";
|
|
688
|
-
compiling: "compiling";
|
|
689
688
|
superseded: "superseded";
|
|
689
|
+
compiling: "compiling";
|
|
690
690
|
}>;
|
|
691
691
|
}, z.core.$strip>>;
|
|
692
692
|
}, z.core.$strip>>;
|
|
@@ -798,9 +798,9 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
|
|
|
798
798
|
}>;
|
|
799
799
|
name: z.ZodString;
|
|
800
800
|
category: z.ZodEnum<{
|
|
801
|
-
custom: "custom";
|
|
802
|
-
support: "support";
|
|
803
801
|
analytics: "analytics";
|
|
802
|
+
support: "support";
|
|
803
|
+
custom: "custom";
|
|
804
804
|
advertising: "advertising";
|
|
805
805
|
product: "product";
|
|
806
806
|
monitoring: "monitoring";
|
|
@@ -814,10 +814,10 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
|
|
|
814
814
|
scroll_depth: "scroll_depth";
|
|
815
815
|
}>>;
|
|
816
816
|
consentCategories: z.ZodArray<z.ZodEnum<{
|
|
817
|
-
necessary: "necessary";
|
|
818
|
-
functional: "functional";
|
|
819
817
|
analytics: "analytics";
|
|
820
818
|
marketing: "marketing";
|
|
819
|
+
necessary: "necessary";
|
|
820
|
+
functional: "functional";
|
|
821
821
|
personalization: "personalization";
|
|
822
822
|
}>>;
|
|
823
823
|
fields: z.ZodArray<z.ZodObject<{
|
|
@@ -825,9 +825,9 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
|
|
|
825
825
|
label: z.ZodString;
|
|
826
826
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
827
827
|
boolean: "boolean";
|
|
828
|
+
text: "text";
|
|
828
829
|
url: "url";
|
|
829
830
|
secret: "secret";
|
|
830
|
-
text: "text";
|
|
831
831
|
textarea: "textarea";
|
|
832
832
|
}>>;
|
|
833
833
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -868,10 +868,10 @@ export declare const tagTemplateSelectionSchema: z.ZodObject<{
|
|
|
868
868
|
scroll_depth: "scroll_depth";
|
|
869
869
|
}>>>;
|
|
870
870
|
consentCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
871
|
-
necessary: "necessary";
|
|
872
|
-
functional: "functional";
|
|
873
871
|
analytics: "analytics";
|
|
874
872
|
marketing: "marketing";
|
|
873
|
+
necessary: "necessary";
|
|
874
|
+
functional: "functional";
|
|
875
875
|
personalization: "personalization";
|
|
876
876
|
}>>>;
|
|
877
877
|
environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -907,9 +907,9 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
907
907
|
}>;
|
|
908
908
|
name: z.ZodString;
|
|
909
909
|
category: z.ZodEnum<{
|
|
910
|
-
custom: "custom";
|
|
911
|
-
support: "support";
|
|
912
910
|
analytics: "analytics";
|
|
911
|
+
support: "support";
|
|
912
|
+
custom: "custom";
|
|
913
913
|
advertising: "advertising";
|
|
914
914
|
product: "product";
|
|
915
915
|
monitoring: "monitoring";
|
|
@@ -923,10 +923,10 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
923
923
|
scroll_depth: "scroll_depth";
|
|
924
924
|
}>>;
|
|
925
925
|
consentCategories: z.ZodArray<z.ZodEnum<{
|
|
926
|
-
necessary: "necessary";
|
|
927
|
-
functional: "functional";
|
|
928
926
|
analytics: "analytics";
|
|
929
927
|
marketing: "marketing";
|
|
928
|
+
necessary: "necessary";
|
|
929
|
+
functional: "functional";
|
|
930
930
|
personalization: "personalization";
|
|
931
931
|
}>>;
|
|
932
932
|
fields: z.ZodArray<z.ZodObject<{
|
|
@@ -934,9 +934,9 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
934
934
|
label: z.ZodString;
|
|
935
935
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
936
936
|
boolean: "boolean";
|
|
937
|
+
text: "text";
|
|
937
938
|
url: "url";
|
|
938
939
|
secret: "secret";
|
|
939
|
-
text: "text";
|
|
940
940
|
textarea: "textarea";
|
|
941
941
|
}>>;
|
|
942
942
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -998,9 +998,9 @@ export declare const tagConsentPolicyResponseSchema: z.ZodObject<{
|
|
|
998
998
|
message: z.ZodString;
|
|
999
999
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
1000
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1001
|
+
registrar: "registrar";
|
|
1001
1002
|
wpcloud: "wpcloud";
|
|
1002
1003
|
dns: "dns";
|
|
1003
|
-
registrar: "registrar";
|
|
1004
1004
|
runtime: "runtime";
|
|
1005
1005
|
}>>>;
|
|
1006
1006
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1040,10 +1040,10 @@ export declare const tagTemplateGraphSchema: z.ZodObject<{
|
|
|
1040
1040
|
scroll_depth: "scroll_depth";
|
|
1041
1041
|
}>>>;
|
|
1042
1042
|
consentCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1043
|
-
necessary: "necessary";
|
|
1044
|
-
functional: "functional";
|
|
1045
1043
|
analytics: "analytics";
|
|
1046
1044
|
marketing: "marketing";
|
|
1045
|
+
necessary: "necessary";
|
|
1046
|
+
functional: "functional";
|
|
1047
1047
|
personalization: "personalization";
|
|
1048
1048
|
}>>>;
|
|
1049
1049
|
environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1077,14 +1077,14 @@ export declare function listTagTemplates(): {
|
|
|
1077
1077
|
templates: {
|
|
1078
1078
|
id: "intercom" | "google-analytics" | "google-tag-manager" | "meta-pixel" | "tiktok-pixel" | "linkedin-insight" | "posthog" | "plausible" | "amplitude" | "segment" | "sentry-browser" | "hubspot" | "crisp" | "custom-javascript";
|
|
1079
1079
|
name: string;
|
|
1080
|
-
category: "
|
|
1080
|
+
category: "analytics" | "support" | "custom" | "advertising" | "product" | "monitoring";
|
|
1081
1081
|
description: string;
|
|
1082
1082
|
defaultTriggers: ("page_view" | "outbound_click" | "form_submit" | "file_download" | "scroll_depth")[];
|
|
1083
|
-
consentCategories: ("
|
|
1083
|
+
consentCategories: ("analytics" | "marketing" | "necessary" | "functional" | "personalization")[];
|
|
1084
1084
|
fields: {
|
|
1085
1085
|
key: string;
|
|
1086
1086
|
label: string;
|
|
1087
|
-
kind: "boolean" | "
|
|
1087
|
+
kind: "boolean" | "text" | "url" | "secret" | "textarea";
|
|
1088
1088
|
required: boolean;
|
|
1089
1089
|
placeholder?: string | undefined;
|
|
1090
1090
|
help?: string | undefined;
|
|
@@ -1101,6 +1101,7 @@ export declare function listTagTemplates(): {
|
|
|
1101
1101
|
}[];
|
|
1102
1102
|
};
|
|
1103
1103
|
export declare function tagTemplateById(id: string): TagTemplateDefinition | null;
|
|
1104
|
+
export declare function safeTagIdPart(value: string): string;
|
|
1104
1105
|
export declare function tagPresetTriggers(ids: TagTriggerPreset[]): {
|
|
1105
1106
|
id: string;
|
|
1106
1107
|
type: "page_view" | "outbound_click" | "form_submit" | "file_download" | "scroll_depth";
|
|
@@ -1130,9 +1131,9 @@ export declare const tagEffectiveResponseSchema: z.ZodObject<{
|
|
|
1130
1131
|
sdkRevision: z.ZodNullable<z.ZodString>;
|
|
1131
1132
|
sources: z.ZodArray<z.ZodObject<{
|
|
1132
1133
|
type: z.ZodEnum<{
|
|
1133
|
-
system: "system";
|
|
1134
|
-
team: "team";
|
|
1135
1134
|
space: "space";
|
|
1135
|
+
team: "team";
|
|
1136
|
+
system: "system";
|
|
1136
1137
|
}>;
|
|
1137
1138
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1138
1139
|
}, z.core.$strip>>;
|
package/dist/contracts/tags.js
CHANGED
|
@@ -698,7 +698,7 @@ function templateFieldValue(config, key) {
|
|
|
698
698
|
const value = config[key];
|
|
699
699
|
return typeof value === "string" ? value.trim() : "";
|
|
700
700
|
}
|
|
701
|
-
function safeTagIdPart(value) {
|
|
701
|
+
export function safeTagIdPart(value) {
|
|
702
702
|
return value
|
|
703
703
|
.trim()
|
|
704
704
|
.toLowerCase()
|
|
@@ -966,6 +966,7 @@ export function tagGraphFromTemplateSelection(input) {
|
|
|
966
966
|
const tags = [
|
|
967
967
|
{
|
|
968
968
|
...common,
|
|
969
|
+
templateConfig: selection.config,
|
|
969
970
|
id: idBase,
|
|
970
971
|
name: selection.name ?? template.name,
|
|
971
972
|
triggerIds: template.id === "custom-javascript"
|