Inserts or updates a webpush subscription. The (user_id, endpoint) pair is unique; re-subscribing the same endpoint replaces the keys instead of inserting a duplicate row. This is the recovery path after a PWA reinstall on iOS, where the browser may keep the same endpoint with rotated keys.
(ctx context.Context, arg InsertWebpushSubscriptionParams)
| 1010 | // inserting a duplicate row. This is the recovery path after a PWA reinstall |
| 1011 | // on iOS, where the browser may keep the same endpoint with rotated keys. |
| 1012 | InsertWebpushSubscription(ctx context.Context, arg InsertWebpushSubscriptionParams) (WebpushSubscription, error) |
| 1013 | InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) (WorkspaceTable, error) |
| 1014 | InsertWorkspaceAgent(ctx context.Context, arg InsertWorkspaceAgentParams) (WorkspaceAgent, error) |
| 1015 | InsertWorkspaceAgentDevcontainers(ctx context.Context, arg InsertWorkspaceAgentDevcontainersParams) ([]WorkspaceAgentDevcontainer, error) |
no outgoing calls