@camstack/types 0.1.21 → 0.1.22

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.
@@ -14,13 +14,6 @@ import { type InferProvider } from './capability-definition.js';
14
14
  declare const AuthProviderInfoSchema: z.ZodObject<{
15
15
  addonId: z.ZodString;
16
16
  displayName: z.ZodString;
17
- kind: z.ZodEnum<{
18
- other: "other";
19
- local: "local";
20
- oidc: "oidc";
21
- saml: "saml";
22
- ldap: "ldap";
23
- }>;
24
17
  icon: z.ZodOptional<z.ZodString>;
25
18
  hasRedirectFlow: z.ZodBoolean;
26
19
  hasCredentialFlow: z.ZodBoolean;
@@ -52,13 +45,6 @@ export declare const authenticationCapability: {
52
45
  readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
53
46
  addonId: z.ZodString;
54
47
  displayName: z.ZodString;
55
- kind: z.ZodEnum<{
56
- other: "other";
57
- local: "local";
58
- oidc: "oidc";
59
- saml: "saml";
60
- ldap: "ldap";
61
- }>;
62
48
  icon: z.ZodOptional<z.ZodString>;
63
49
  hasRedirectFlow: z.ZodBoolean;
64
50
  hasCredentialFlow: z.ZodBoolean;
@@ -1 +1 @@
1
- {"version":3,"file":"authentication.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/authentication.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;iBA2B1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB;;;;;QAKjC,gEAAgE;;;;;;;;;;;;;;;;;QAEhE;;;;WAIG;;;;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
1
+ {"version":3,"file":"authentication.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/authentication.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,sBAAsB;;;;;;;;iBAkB1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB;;;;;QAKjC,gEAAgE;;;;;;;;;;QAEhE;;;;WAIG;;;;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -17,12 +17,6 @@ declare const RemoteAccessEndpointSchema: z.ZodObject<{
17
17
  declare const RemoteAccessProviderInfoSchema: z.ZodObject<{
18
18
  addonId: z.ZodString;
19
19
  displayName: z.ZodString;
20
- kind: z.ZodEnum<{
21
- other: "other";
22
- tailscale: "tailscale";
23
- "cloudflare-tunnel": "cloudflare-tunnel";
24
- ngrok: "ngrok";
25
- }>;
26
20
  enabled: z.ZodBoolean;
27
21
  connected: z.ZodBoolean;
28
22
  endpoint: z.ZodNullable<z.ZodObject<{
@@ -55,12 +49,6 @@ export declare const remoteAccessCapability: {
55
49
  readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
56
50
  addonId: z.ZodString;
57
51
  displayName: z.ZodString;
58
- kind: z.ZodEnum<{
59
- other: "other";
60
- tailscale: "tailscale";
61
- "cloudflare-tunnel": "cloudflare-tunnel";
62
- ngrok: "ngrok";
63
- }>;
64
52
  enabled: z.ZodBoolean;
65
53
  connected: z.ZodBoolean;
66
54
  endpoint: z.ZodNullable<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"remote-access.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/remote-access.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,0BAA0B;;;;;;;;iBAK9B,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;iBAqBlC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;QAK/B,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;QAElE;;;;WAIG;;;;;;;;;;;;QAMH,yEAAyE;;;;;;;CAOpC,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpF,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,CAAA"}
1
+ {"version":3,"file":"remote-access.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/remote-access.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,0BAA0B;;;;;;;;iBAK9B,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;iBAalC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;QAK/B,kEAAkE;;;;;;;;;;;;;;;;;QAElE;;;;WAIG;;;;;;;;;;;;QAMH,yEAAyE;;;;;;;CAOpC,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpF,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,CAAA"}
@@ -3,12 +3,6 @@ import { type InferProvider } from './capability-definition.js';
3
3
  declare const TurnProviderInfoSchema: z.ZodObject<{
4
4
  addonId: z.ZodString;
5
5
  displayName: z.ZodString;
6
- kind: z.ZodEnum<{
7
- other: "other";
8
- cloudflare: "cloudflare";
9
- coturn: "coturn";
10
- twilio: "twilio";
11
- }>;
12
6
  enabled: z.ZodBoolean;
13
7
  serverCount: z.ZodNumber;
14
8
  urls: z.ZodReadonly<z.ZodArray<z.ZodString>>;
@@ -40,12 +34,6 @@ export declare const turnOrchestratorCapability: {
40
34
  readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
41
35
  addonId: z.ZodString;
42
36
  displayName: z.ZodString;
43
- kind: z.ZodEnum<{
44
- other: "other";
45
- cloudflare: "cloudflare";
46
- coturn: "coturn";
47
- twilio: "twilio";
48
- }>;
49
37
  enabled: z.ZodBoolean;
50
38
  serverCount: z.ZodNumber;
51
39
  urls: z.ZodReadonly<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"turn-orchestrator.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/turn-orchestrator.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;iBA2B1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B;;;;;QAKnC,0DAA0D;;;;;;;;;;;;;;;QAE1D;;;;;WAKG;;;;;;QAEH,wCAAwC;;;;;;;;CAOH,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAExF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
1
+ {"version":3,"file":"turn-orchestrator.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/turn-orchestrator.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG,QAAA,MAAM,sBAAsB;;;;;;;iBAmB1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B;;;;;QAKnC,0DAA0D;;;;;;;;;QAE1D;;;;;WAKG;;;;;;QAEH,wCAAwC;;;;;;;;CAOH,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAExF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -6438,7 +6438,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6438
6438
  user: {
6439
6439
  id: string;
6440
6440
  username: string;
6441
- role: "admin" | "viewer" | "super_admin" | "agent";
6441
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6442
6442
  };
6443
6443
  };
6444
6444
  meta: object;
@@ -6448,9 +6448,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6448
6448
  output: {
6449
6449
  id: string;
6450
6450
  username: string;
6451
- role: "admin" | "viewer" | "super_admin" | "agent";
6451
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6452
6452
  permissions: {
6453
- role: "admin" | "viewer" | "super_admin" | "agent";
6453
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6454
6454
  allowedProviders: string[] | "*";
6455
6455
  allowedDevices: Record<string, unknown>;
6456
6456
  };
@@ -6490,7 +6490,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6490
6490
  output: {
6491
6491
  id: string;
6492
6492
  username: string;
6493
- role: "admin" | "viewer" | "super_admin" | "agent";
6493
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6494
6494
  allowedProviders: string[] | "*";
6495
6495
  allowedDevices: Record<string, string[] | "*">;
6496
6496
  createdAt: number;
@@ -6503,14 +6503,14 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6503
6503
  [x: string]: unknown;
6504
6504
  username: string;
6505
6505
  password: string;
6506
- role: "admin" | "viewer" | "super_admin" | "agent";
6506
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6507
6507
  allowedProviders?: string[] | "*" | undefined;
6508
6508
  allowedDevices?: Record<string, string[] | "*"> | undefined;
6509
6509
  };
6510
6510
  output: {
6511
6511
  id: string;
6512
6512
  username: string;
6513
- role: "admin" | "viewer" | "super_admin" | "agent";
6513
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6514
6514
  allowedProviders: string[] | "*";
6515
6515
  allowedDevices: Record<string, string[] | "*">;
6516
6516
  createdAt: number;
@@ -6522,7 +6522,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6522
6522
  input: {
6523
6523
  [x: string]: unknown;
6524
6524
  id: string;
6525
- role?: "admin" | "viewer" | "super_admin" | "agent" | undefined;
6525
+ role?: "admin" | "viewer" | "super_admin" | "agent" | "scoped" | undefined;
6526
6526
  allowedProviders?: string[] | "*" | undefined;
6527
6527
  allowedDevices?: Record<string, string[] | "*"> | undefined;
6528
6528
  };
@@ -6561,7 +6561,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6561
6561
  output: {
6562
6562
  id: string;
6563
6563
  username: string;
6564
- role: "admin" | "viewer" | "super_admin" | "agent";
6564
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6565
6565
  allowedProviders: string[] | "*";
6566
6566
  allowedDevices: Record<string, string[] | "*">;
6567
6567
  createdAt: number;
@@ -6577,7 +6577,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6577
6577
  output: {
6578
6578
  id: string;
6579
6579
  label: string;
6580
- role: "admin" | "viewer" | "super_admin" | "agent";
6580
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6581
6581
  tokenPrefix: string;
6582
6582
  createdAt: number;
6583
6583
  allowedProviders?: string[] | "*" | undefined;
@@ -6590,7 +6590,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6590
6590
  input: {
6591
6591
  [x: string]: unknown;
6592
6592
  label: string;
6593
- role: "admin" | "viewer" | "super_admin" | "agent";
6593
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6594
6594
  allowedProviders?: string[] | "*" | undefined;
6595
6595
  allowedDevices?: Record<string, string[] | "*"> | undefined;
6596
6596
  };
@@ -6599,7 +6599,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6599
6599
  record: {
6600
6600
  id: string;
6601
6601
  label: string;
6602
- role: "admin" | "viewer" | "super_admin" | "agent";
6602
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6603
6603
  tokenPrefix: string;
6604
6604
  createdAt: number;
6605
6605
  allowedProviders?: string[] | "*" | undefined;
@@ -6627,7 +6627,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
6627
6627
  output: {
6628
6628
  id: string;
6629
6629
  label: string;
6630
- role: "admin" | "viewer" | "super_admin" | "agent";
6630
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
6631
6631
  tokenPrefix: string;
6632
6632
  createdAt: number;
6633
6633
  allowedProviders?: string[] | "*" | undefined;
@@ -14613,7 +14613,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14613
14613
  user: {
14614
14614
  id: string;
14615
14615
  username: string;
14616
- role: "admin" | "viewer" | "super_admin" | "agent";
14616
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14617
14617
  };
14618
14618
  };
14619
14619
  meta: object;
@@ -14623,9 +14623,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14623
14623
  output: {
14624
14624
  id: string;
14625
14625
  username: string;
14626
- role: "admin" | "viewer" | "super_admin" | "agent";
14626
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14627
14627
  permissions: {
14628
- role: "admin" | "viewer" | "super_admin" | "agent";
14628
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14629
14629
  allowedProviders: string[] | "*";
14630
14630
  allowedDevices: Record<string, unknown>;
14631
14631
  };
@@ -14665,7 +14665,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14665
14665
  output: {
14666
14666
  id: string;
14667
14667
  username: string;
14668
- role: "admin" | "viewer" | "super_admin" | "agent";
14668
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14669
14669
  allowedProviders: string[] | "*";
14670
14670
  allowedDevices: Record<string, string[] | "*">;
14671
14671
  createdAt: number;
@@ -14678,14 +14678,14 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14678
14678
  [x: string]: unknown;
14679
14679
  username: string;
14680
14680
  password: string;
14681
- role: "admin" | "viewer" | "super_admin" | "agent";
14681
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14682
14682
  allowedProviders?: string[] | "*" | undefined;
14683
14683
  allowedDevices?: Record<string, string[] | "*"> | undefined;
14684
14684
  };
14685
14685
  output: {
14686
14686
  id: string;
14687
14687
  username: string;
14688
- role: "admin" | "viewer" | "super_admin" | "agent";
14688
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14689
14689
  allowedProviders: string[] | "*";
14690
14690
  allowedDevices: Record<string, string[] | "*">;
14691
14691
  createdAt: number;
@@ -14697,7 +14697,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14697
14697
  input: {
14698
14698
  [x: string]: unknown;
14699
14699
  id: string;
14700
- role?: "admin" | "viewer" | "super_admin" | "agent" | undefined;
14700
+ role?: "admin" | "viewer" | "super_admin" | "agent" | "scoped" | undefined;
14701
14701
  allowedProviders?: string[] | "*" | undefined;
14702
14702
  allowedDevices?: Record<string, string[] | "*"> | undefined;
14703
14703
  };
@@ -14736,7 +14736,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14736
14736
  output: {
14737
14737
  id: string;
14738
14738
  username: string;
14739
- role: "admin" | "viewer" | "super_admin" | "agent";
14739
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14740
14740
  allowedProviders: string[] | "*";
14741
14741
  allowedDevices: Record<string, string[] | "*">;
14742
14742
  createdAt: number;
@@ -14752,7 +14752,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14752
14752
  output: {
14753
14753
  id: string;
14754
14754
  label: string;
14755
- role: "admin" | "viewer" | "super_admin" | "agent";
14755
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14756
14756
  tokenPrefix: string;
14757
14757
  createdAt: number;
14758
14758
  allowedProviders?: string[] | "*" | undefined;
@@ -14765,7 +14765,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14765
14765
  input: {
14766
14766
  [x: string]: unknown;
14767
14767
  label: string;
14768
- role: "admin" | "viewer" | "super_admin" | "agent";
14768
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14769
14769
  allowedProviders?: string[] | "*" | undefined;
14770
14770
  allowedDevices?: Record<string, string[] | "*"> | undefined;
14771
14771
  };
@@ -14774,7 +14774,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14774
14774
  record: {
14775
14775
  id: string;
14776
14776
  label: string;
14777
- role: "admin" | "viewer" | "super_admin" | "agent";
14777
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14778
14778
  tokenPrefix: string;
14779
14779
  createdAt: number;
14780
14780
  allowedProviders?: string[] | "*" | undefined;
@@ -14802,7 +14802,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
14802
14802
  output: {
14803
14803
  id: string;
14804
14804
  label: string;
14805
- role: "admin" | "viewer" | "super_admin" | "agent";
14805
+ role: "admin" | "viewer" | "super_admin" | "agent" | "scoped";
14806
14806
  tokenPrefix: string;
14807
14807
  createdAt: number;
14808
14808
  allowedProviders?: string[] | "*" | undefined;