@adventurelabs/scout-core 1.4.74 → 1.4.76

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 (34) hide show
  1. package/dist/helpers/cache.d.ts +10 -0
  2. package/dist/helpers/cache.js +86 -2
  3. package/dist/helpers/client_abilities_jwt_keys.d.ts +10 -0
  4. package/dist/helpers/client_abilities_jwt_keys.js +25 -0
  5. package/dist/helpers/client_abilities_token.d.ts +7 -0
  6. package/dist/helpers/client_abilities_token.js +53 -0
  7. package/dist/helpers/client_abilities_token_server.d.ts +7 -0
  8. package/dist/helpers/client_abilities_token_server.js +7 -0
  9. package/dist/helpers/herd_roles.d.ts +14 -0
  10. package/dist/helpers/herd_roles.js +134 -0
  11. package/dist/helpers/index.d.ts +4 -0
  12. package/dist/helpers/index.js +4 -0
  13. package/dist/helpers/invitations.d.ts +2 -2
  14. package/dist/helpers/invitations.js +2 -2
  15. package/dist/helpers/pubsub_token.d.ts +3 -1
  16. package/dist/helpers/pubsub_token.js +41 -0
  17. package/dist/helpers/ui.d.ts +3 -2
  18. package/dist/helpers/ui.js +6 -1
  19. package/dist/helpers/users.d.ts +2 -2
  20. package/dist/helpers/users.js +27 -16
  21. package/dist/index.d.ts +7 -1
  22. package/dist/index.js +6 -0
  23. package/dist/providers/ScoutRefreshProvider.d.ts +28 -3532
  24. package/dist/providers/ScoutRefreshProvider.js +191 -36
  25. package/dist/types/client_abilities_token.d.ts +19 -0
  26. package/dist/types/client_abilities_token.js +16 -0
  27. package/dist/types/db.d.ts +11 -2
  28. package/dist/types/jwt_mint.d.ts +10 -0
  29. package/dist/types/jwt_mint.js +26 -0
  30. package/dist/types/pubsub_token.d.ts +5 -0
  31. package/dist/types/pubsub_token.js +1 -1
  32. package/dist/types/supabase.d.ts +191 -38
  33. package/dist/types/supabase.js +0 -1
  34. package/package.json +12 -9
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export * from "./types/bounding_boxes";
11
11
  export * from "./types/events";
12
12
  export * from "./types/connectivity";
13
13
  export * from "./types/pubsub_token";
14
+ export * from "./types/client_abilities_token";
15
+ export * from "./types/jwt_mint";
14
16
  export * from "./helpers/analysis_usage";
15
17
  export * from "./helpers/artifacts";
16
18
  export * from "./helpers/auth";
@@ -48,6 +50,10 @@ export * from "./helpers/heartbeats";
48
50
  export * from "./helpers/providers";
49
51
  export * from "./helpers/pubsub_token";
50
52
  export * from "./helpers/pubsub_token_server";
53
+ export * from "./helpers/client_abilities_token";
54
+ export * from "./helpers/client_abilities_token_server";
55
+ export * from "./helpers/client_abilities_jwt_keys";
56
+ export * from "./helpers/herd_roles";
51
57
  export * from "./helpers/observations";
52
58
  export * from "./helpers/operators";
53
59
  export * from "./helpers/versions_software";
@@ -76,5 +82,5 @@ export * from "./supabase/middleware";
76
82
  export * from "./supabase/server";
77
83
  export * from "./api_keys/actions";
78
84
  export type { HerdModule, IHerdModule } from "./types/herd_module";
79
- export type { IDevice, IEvent, IUser, IHerd, IHerdPrettyLocation, IEventWithTags, IZoneWithActions, ICredential, CredentialInsert, CredentialUpdate, ICertificate, CertificateInsert, CertificateUpdate, IUserAndRole, IUserProfileRow, IHerdInvitation, IHerdInvitationWithHerdSlug, IHerdAllowedDomain, IUserRolePerHerd, HerdInvitationStatus, IApiKeyScout, ILayer, IHeartbeat, IProvider, IConnectivity, ISession, ISessionWithCoordinates, IConnectivityWithCoordinates, IObservation, ObservationInsert, ObservationUpdate, IAnalysisJob, IAnalysisTask, AnalysisWorkStatus, } from "./types/db";
85
+ export type { IDevice, IEvent, IUser, IHerd, IHerdPrettyLocation, IEventWithTags, IZoneWithActions, ICredential, CredentialInsert, CredentialUpdate, ICertificate, CertificateInsert, CertificateUpdate, IUserAndRole, IUserProfileRow, IHerdInvitation, IHerdInvitationWithHerdSlug, IHerdAllowedDomain, IUserRolePerHerd, IAbility, IHerdRole, IHerdRoleWithAbilities, HerdRoleSystemName, HerdInvitationStatus, IApiKeyScout, ILayer, IHeartbeat, IProvider, IConnectivity, ISession, ISessionWithCoordinates, IConnectivityWithCoordinates, IObservation, ObservationInsert, ObservationUpdate, IAnalysisJob, IAnalysisTask, AnalysisWorkStatus, } from "./types/db";
80
86
  export { EnumSessionsVisibility } from "./types/events";
package/dist/index.js CHANGED
@@ -13,6 +13,8 @@ export * from "./types/bounding_boxes";
13
13
  export * from "./types/events";
14
14
  export * from "./types/connectivity";
15
15
  export * from "./types/pubsub_token";
16
+ export * from "./types/client_abilities_token";
17
+ export * from "./types/jwt_mint";
16
18
  // Helpers
17
19
  export * from "./helpers/analysis_usage";
18
20
  export * from "./helpers/artifacts";
@@ -51,6 +53,10 @@ export * from "./helpers/heartbeats";
51
53
  export * from "./helpers/providers";
52
54
  export * from "./helpers/pubsub_token";
53
55
  export * from "./helpers/pubsub_token_server";
56
+ export * from "./helpers/client_abilities_token";
57
+ export * from "./helpers/client_abilities_token_server";
58
+ export * from "./helpers/client_abilities_jwt_keys";
59
+ export * from "./helpers/herd_roles";
54
60
  export * from "./helpers/observations";
55
61
  export * from "./helpers/operators";
56
62
  export * from "./helpers/versions_software";