AsUsagePublisher returns a context with an actor that has permissions required for creating, reading, and updating usage events.
(ctx context.Context)
| 835 | // AsUsagePublisher returns a context with an actor that has permissions |
| 836 | // required for creating, reading, and updating usage events. |
| 837 | func AsUsagePublisher(ctx context.Context) context.Context { |
| 838 | return As(ctx, subjectUsagePublisher) |
| 839 | } |
| 840 | |
| 841 | // AsAIBridged returns a context with an actor that has permissions |
| 842 | // required for creating, reading, and updating aibridge-related resources. |